Function at 0x4793f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x479c42
sub esp, 0x7c
mov ebx, dword [esp + 0x80]
movzx ebp, byte [ebx + 0x3d]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x479420
mov byte [ebx + 0x3c], 1
jmp 0x47942e
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
mov ebx, ebp
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
cmp eax, ecx
jl 0x479443
mov ebp, dword [ebx + 0x30]
test ebp, ebp
je 0x479694
mov edx, dword [ebx + 0x24]
mov ebp, dword [ebx + 0x1c]
cmp edx, ecx
jb 0x479c3c
cmp eax, ecx
ja 0x479c37
mov esi, dword [ebx + 0x30]
test esi, esi
xchg esi, ebx
setne bl
xchg esi, ebx
mov edi, dword [ebx + 8]
mov ebx, dword [edi]
sub edx, eax
mov dword [esp + 0x4c], edx
neg edx
sar edx, 0x1f
and edx, eax
add ebp, edx
mov dword [esp], ebp
sub ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
xchg esi, eax
mov byte [esp + 0xc], al
xchg esi, eax
mov edx, edi
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x78], ebx
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov edx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x50], ebp
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x20]
test ecx, ecx
jne 0x479a6a
mov dword [esp + 0x30], eax
test eax, eax
jge 0x47958e
mov ebx, dword [0x6b093c]
mov dword [esp + 0x68], ebx
mov ecx, ebp
mov ebp, dword [0x6b0938]
mov dword [esp + 0x40], ebp
mov edx, esi
mov esi, dword [esp + 0x80]
mov ebx, dword [esi + 0x30]
mov ebp, dword [esi + 0x34]
test ebx, ebx
je 0x479557
mov dword [esp + 0x74], ebp
mov ebp, dword [0x6b07b4]
cmp dword [0x6b07b0], ebx
je 0x479521
xor ebx, ebx
jmp 0x479553
mov dword [esp], ebx
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00403550
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x30]
test bl, bl
je 0x479587
mov ebx, dword [esp + 0x40]
mov dword [esi + 0x30], ebx
mov ebx, dword [0x6d6280]
test ebx, ebx
jne 0x479571
mov ebx, dword [esp + 0x68]
mov dword [esi + 0x34], ebx
jmp 0x479587
lea ebx, [esi + 0x34]
mov ebp, edi
mov edi, ebx
mov eax, dword [esp + 0x68]
call fcn.00452020
mov eax, dword [esp + 0x30]
mov edi, ebp
xor ebx, ebx
jmp 0x47965f
mov ebx, dword [esp + 0x80]
mov ecx, ebp
mov ebp, dword [ebx + 0x2c]
mov edx, esi
mov esi, dword [ebx + 0x28]
sub ebp, esi
cmp eax, ebp
jle 0x479652
mov ebp, dword [0x6b0954]
mov dword [esp + 0x64], ebp
mov esi, dword [0x6b0950]
mov ebp, dword [ebx + 0x30]
mov ebx, dword [ebx + 0x34]
test ebp, ebp
je 0x479619
mov dword [esp + 0x74], ebx
mov ebx, dword [0x6b07b4]
cmp dword [0x6b07b0], ebp
je 0x4795d9
xor ebx, ebx
jmp 0x47960c
mov dword [esp + 0x3c], esi
mov dword [esp], ebp
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00403550
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x30]
test bl, bl
jne 0x479619
mov ebx, dword [esp + 0x80]
jmp 0x47964c
mov ebx, dword [esp + 0x80]
mov dword [ebx + 0x30], esi
mov ebp, dword [0x6d6280]
test ebp, ebp
jne 0x479636
mov ebp, dword [esp + 0x64]
mov dword [ebx + 0x34], ebp
jmp 0x47964c
lea ebp, [ebx + 0x34]
mov esi, edi
mov edi, ebp
mov eax, dword [esp + 0x64]
call fcn.00452020
mov eax, dword [esp + 0x30]
mov edi, esi
mov esi, ebx
xor ebx, ebx
jmp 0x47965f
lea ebp, [eax + esi]
mov dword [ebx + 0x28], ebp
mov esi, ebx
mov ebx, 1
test bl, bl
je 0x479a5e
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edx
mov ebx, dword [0x6d6280]
test ebx, ebx
jne 0x47967c
mov dword [esi + 0x10], ecx
jmp 0x47968a
lea edi, [esi + 0x10]
mov edx, eax
mov eax, ecx
call fcn.00452020
mov eax, edx
test ecx, ecx
jne 0x479a2f
mov ebx, esi
mov ebp, dword [ebx + 0x30]
test ebp, ebp
jne 0x479a15
mov eax, dword [ebx + 0x28]
test eax, eax
jle 0x479713
mov ecx, dword [ebx + 0x2c]
mov ebp, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov esi, dword [ebx + 0x1c]
cmp ebp, ecx
je 0x4796c0
mov edi, ebp
shr ebp, 1
cmp eax, ebp
jle 0x479713
mov ebp, edi
cmp edx, ecx
jb 0x479c32
cmp ecx, eax
jb 0x479c2d
sub edx, eax
neg edx
sar edx, 0x1f
and edx, eax
sub ecx, eax
mov eax, ebx
lea ebx, [esi + edx]
cmp ebp, ecx
jg 0x4796e6
mov ecx, ebp
test edx, edx
je 0x479701
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.00452920
mov eax, dword [esp + 0x80]
mov edx, dword [eax + 0x2c]
sub edx, dword [eax + 0x28]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x28], 0
jmp 0x479715
mov eax, ebx
mov edx, dword [eax + 0x20]
cmp dword [eax + 0x2c], edx
jne 0x4797f8
mov ecx, dword [eax + 0xc]
cmp ecx, edx
jle 0x479993
cmp edx, 0x3fffffff
jg 0x479993
shl edx, 1
test edx, edx
jne 0x479743
mov edx, 0x1000
cmp edx, ecx
jg 0x479749
mov ecx, edx
mov dword [esp + 0x34], ecx
lea eax, [0x5b0a60]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0043f090
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x28]
mov esi, dword [ecx + 0x2c]
cmp esi, edx
ja 0x479c26
cmp esi, ebp
jb 0x479c1d
sub esi, ebp
sub edx, ebp
neg edx
sar edx, 0x1f
and ebp, edx
lea edx, [ebx + ebp]
mov ebx, dword [esp + 0x34]
cmp ebx, esi
jg 0x4797a2
mov esi, ebx
cmp eax, edx
je 0x4797c9
mov dword [esp + 0x70], eax
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.00452920
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x34]
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], ebx
mov edx, dword [0x6d6280]
test edx, edx
jne 0x4797de
mov dword [ecx + 0x1c], eax
jmp 0x4797e6
lea edi, [ecx + 0x1c]
call fcn.00452020
mov edx, dword [ecx + 0x2c]
sub edx, dword [ecx + 0x28]
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x28], 0
jmp 0x4797fa
mov ecx, eax
xor eax, eax
jmp 0x479b7b
mov eax, dword [0x6b07ac]
mov ebx, dword [0x6b07a8]
mov esi, dword [ebp + 0x30]
mov ecx, ebx
mov ebx, dword [ebp + 0x34]
test esi, esi
je 0x479863
mov edx, ebx
mov ebx, dword [0x6b07b4]
cmp dword [0x6b07b0], esi
je 0x47982d
xor edx, edx
jmp 0x47985b
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], eax
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00403550
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x80]
mov edx, eax
mov eax, dword [esp + 0x54]
test dl, dl
je 0x47942c
mov dword [ebp + 0x30], ecx
mov ebx, dword [0x6d6280]
test ebx, ebx
jne 0x479878
mov dword [ebp + 0x34], eax
jmp 0x47942c
lea edi, [ebp + 0x34]
call fcn.00452020
jmp 0x47942c
mov dword [ebp + 0x38], 0
jmp 0x47942c
nop
mov ebx, dword [ebp + 0x30]
mov esi, dword [ebp + 0x34]
test ebx, ebx
je 0x4798e4
mov eax, esi
mov esi, dword [0x6b07b4]
cmp dword [0x6b07b0], ebx
je 0x4798b0
xor eax, eax
jmp 0x4798dc
mov dword [esp + 0x74], edi
mov dword [esp + 0x5c], edx
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00403550
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x74]
test al, al
je 0x47942c
mov dword [ebp + 0x30], edi
mov ebx, dword [0x6d6280]
test ebx, ebx
jne 0x4798f9
mov dword [ebp + 0x34], edx
jmp 0x47942c
lea edi, [ebp + 0x34]
mov eax, edx
call fcn.00452020
jmp 0x47942c
mov ebp, dword [esp + 0x80]
mov eax, dword [0x6b0974]
mov ebx, dword [0x6b0970]
mov esi, dword [ebp + 0x30]
mov ecx, ebx
mov ebx, dword [ebp + 0x34]
test esi, esi
je 0x479971
mov edx, ebx
mov ebx, dword [0x6b07b4]
cmp dword [0x6b07b0], esi
je 0x47993b
xor edx, edx
jmp 0x479969
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], ecx
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00403550
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x80]
mov edx, eax
mov eax, dword [esp + 0x58]
test dl, dl
je 0x47942c
mov dword [ebp + 0x30], ecx
mov ebx, dword [0x6d6280]
test ebx, ebx
jne 0x479986
mov dword [ebp + 0x34], eax
jmp 0x47942c
lea edi, [ebp + 0x34]
call fcn.00452020
jmp 0x47942c
mov ecx, dword [0x6b096c]
mov edx, dword [0x6b0968]
mov ebx, dword [eax + 0x30]
mov ebp, dword [eax + 0x34]
test ebx, ebx
je 0x4799ed
mov esi, dword [0x6b07b4]
cmp dword [0x6b07b0], ebx
je 0x4799bb
xor ebx, ebx
jmp 0x4799e9
mov dword [esp + 0x60], ecx
mov dword [esp + 0x38], edx
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00403550
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x80]
test bl, bl
je 0x479a09
mov dword [eax + 0x30], edx
mov edx, dword [0x6d6280]
test edx, edx
jne 0x4799ff
mov dword [eax + 0x34], ecx
jmp 0x479a09
lea edi, [eax + 0x34]
mov eax, ecx
call fcn.00452020
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x479a4b
test eax, eax
jg 0x479a4b
mov eax, dword [esi + 0x38]
inc eax
mov dword [esi + 0x38], eax
cmp eax, 0x64
jle 0x479a52
jmp 0x479b57
mov dword [esi + 0x38], 0
mov byte [esp + 0x84], 1
add esp, 0x7c
ret
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
mov dword [esp + 0x74], ebx
mov ecx, dword [0x6b0934]
mov ebp, dword [esp + 0x78]
cmp dword [0x6b0930], ebp
jne 0x479ae1
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00403550
movzx eax, byte [esp + 0xc]
test al, al
je 0x479add
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x18], ecx
mov ecx, dword [0x6d6280]
test ecx, ecx
jne 0x479ac1
mov eax, dword [esp + 0x50]
mov dword [edx + 0x10], eax
jmp 0x479acd
lea edi, [edx + 0x10]
mov eax, dword [esp + 0x50]
call fcn.00452020
mov byte [edx + 0x3d], 1
mov byte [esp + 0x84], 1
add esp, 0x7c
ret
mov ebx, dword [esp + 0x74]
nop
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x30]
mov ebp, dword [ecx + 0x34]
test edx, edx
je 0x479b29
mov esi, dword [0x6b07b4]
cmp dword [0x6b07b0], edx
je 0x479b05
xor eax, eax
jmp 0x479b25
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.00403550
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
test al, al
je 0x479b4b
mov dword [ecx + 0x30], ebx
mov edx, dword [0x6d6280]
test edx, edx
jne 0x479b3f
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0x34], eax
jmp 0x479b4b
lea edi, [ecx + 0x34]
mov eax, dword [esp + 0x6c]
call fcn.00452020
mov byte [esp + 0x84], 0
add esp, 0x7c
ret
call fcn.00479dd0
call fcn.00408340
mov eax, dword [esp + 8]
lea ecx, [0x5b08e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0042e870
mov ecx, ebp
mov eax, ebx
mov edx, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x24]
mov ebp, dword [ecx + 0x20]
mov esi, dword [ecx + 0x2c]
cmp esi, ebp
ja 0x479c14
mov dword [esp + 0x44], eax
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov eax, dword [eax + 0x10]
mov dword [esp], edi
sub ebx, esi
mov edi, ebx
neg ebx
sar ebx, 0x1f
and ebx, esi
add edx, ebx
mov dword [esp + 4], edx
sub ebp, esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test eax, eax
jl 0x479908
mov ebp, dword [esp + 0x80]
mov esi, dword [ebp + 0x20]
mov edi, ebx
mov ebx, dword [ebp + 0x2c]
sub esi, ebx
cmp eax, esi
jg 0x47990f
add ebx, eax
mov dword [ebp + 0x2c], ebx
test ecx, ecx
jne 0x479891
test eax, eax
jg 0x479885
mov ebx, dword [esp + 0x44]
inc ebx
cmp ebx, 0x64
jle 0x479b77
jmp 0x479801
mov eax, esi
mov ecx, ebp
call fcn.00452100
mov eax, ebp
mov ecx, esi
call fcn.00452100
mov ecx, esi
call fcn.004520e0
call fcn.00452100
call fcn.004520e0
call fcn.00452100
call fcn.004520e0
nop
call fcn.00450c10
jmp fcn.004793f0