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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x53a63c
sub esp, 0x74
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x40]
mov ebx, dword [eax + 0x44]
mov ebp, dword [eax + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.004f9c10
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov ebx, dword [esp + 0x78]
cmp ebx, 2
jg 0x53a24f
cmp ebx, 1
jne 0x539e5c
mov ebx, dword [0x61c750]
mov ebp, dword [esp + 0x7c]
mov esi, dword [ebp + 0x34]
mov ebp, dword [ebp + 0x30]
lea edi, [0x61c750]
cmp dword [edi + 4], esi
je 0x539c25
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x25
lea ecx, [0x6864e0]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.004031b0
movzx eax, byte [esp + 0xc]
test al, al
je 0x539bd6
lea eax, [0x652e00]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [esp + 0x70], eax
nop
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
lea ecx, [0x633840]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004fe3f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
test eax, eax
jne 0x539e34
test ecx, ecx
jne 0x539de5
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x539dca
xor ecx, ecx
test ecx, ecx
jle 0x539d7b
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x539d2c
lea eax, [0x652620]
mov dword [esp], eax
call fcn.0040c800
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov ecx, dword [0x7e34e0]
mov eax, dword [eax]
test ecx, ecx
jne 0x539d25
mov dword [edi], eax
lea eax, [0x64ef20]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
call fcn.0045c920
jmp 0x539cf7
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x32
lea ecx, [0x689c9c]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2a
lea ecx, [0x687cfe]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
movzx ecx, byte [ecx]
test cl, cl
je 0x539ddb
mov ecx, 0xffffffff
jmp 0x539cbe
mov ecx, 1
jmp 0x539cbe
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
lea ecx, [0x6873ca]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
add esp, 0x74
ret
cmp ebx, 2
je 0x539e91
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
lea eax, [0x678aa0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
nop
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
lea ecx, [0x631f80]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004fe3f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
test eax, eax
jne 0x53a227
test ecx, ecx
jne 0x53a1d8
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0x38]
mov dword [esp + 0x44], eax
lea ebx, [0x659a40]
mov dword [esp], ebx
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
nop
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], ecx
lea ecx, [0x6337c0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004fe3f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
test eax, eax
jne 0x53a1b0
test ecx, ecx
jne 0x53a161
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x53a146
xor ecx, ecx
test ecx, ecx
jg 0x539fea
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x24
lea ecx, [0x685fad]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x53a12b
xor edx, edx
test edx, edx
jle 0x539f9b
mov edx, dword [ecx + 4]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x53a110
xor edx, edx
test edx, edx
jle 0x539f9b
mov edx, dword [ecx + 8]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x53a0f5
xor edx, edx
test edx, edx
jle 0x539f9b
lea eax, [0x652500]
mov dword [esp], eax
call fcn.0040c800
mov edi, dword [esp + 4]
mov eax, dword [0x7e34e0]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
test eax, eax
jne 0x53a0e9
mov dword [edi], edx
mov edx, dword [0x7e34e0]
mov eax, dword [ecx + 4]
test edx, edx
jne 0x53a0d6
mov dword [edi + 4], eax
mov edx, dword [0x7e34e0]
mov eax, dword [ecx + 8]
test edx, edx
jne 0x53a0c6
mov dword [edi + 8], eax
mov ecx, dword [0x7e34e0]
mov edx, dword [esp + 0x6c]
mov eax, dword [edx]
test ecx, ecx
jne 0x53a0b6
mov dword [edi + 0xc], eax
lea eax, [0x632f40]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
lea ecx, [edi + 0xc]
mov edx, edi
mov edi, ecx
call fcn.0045c920
mov edi, edx
jmp 0x53a088
lea ecx, [edi + 8]
mov edx, edi
mov edi, ecx
call fcn.0045c920
mov edi, edx
jmp 0x53a075
lea edx, [edi + 4]
mov ebx, edi
mov edi, edx
call fcn.0045c920
mov edi, ebx
jmp 0x53a065
mov eax, edx
call fcn.0045c920
jmp 0x53a055
movzx edx, byte [edx]
test dl, dl
je 0x53a106
mov edx, 0xffffffff
jmp 0x53a025
mov edx, 1
jmp 0x53a025
movzx edx, byte [edx]
test dl, dl
je 0x53a121
mov edx, 0xffffffff
jmp 0x53a011
mov edx, 1
jmp 0x53a011
movzx edx, byte [edx]
test dl, dl
je 0x53a13c
mov edx, 0xffffffff
jmp 0x539ffd
mov edx, 1
jmp 0x539ffd
movzx ecx, byte [ecx]
test cl, cl
je 0x53a157
mov ecx, 0xffffffff
jmp 0x539f97
mov ecx, 1
jmp 0x539f97
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
lea ecx, [0x68737a]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
add esp, 0x74
ret
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
lea ecx, [0x6873a2]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
add esp, 0x74
ret
cmp ebx, 3
je 0x53a37f
cmp ebx, 4
jne 0x539e61
mov edx, dword [esp + 0x7c]
mov edx, dword [edx + 0x34]
test edx, edx
jne 0x53a330
cmp eax, 0x20
je 0x53a2c4
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x23
lea ecx, [0x685a56]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea edx, [0x643900]
mov dword [esp], edx
mov dword [esp + 4], 0x20
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.00443fe0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0x20
mov dword [esp + 8], 0x20
call fcn.0040a000
mov eax, dword [esp + 0xc]
lea ecx, [0x649fc0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x31
lea ecx, [0x68994b]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 0x38]
mov dword [esp + 0x40], eax
lea ebx, [0x651200]
mov dword [esp], ebx
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
nop
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
lea ecx, [0x64f760]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004fe3f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x53a5ed
test eax, eax
jne 0x53a59e
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00538ba0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x53a54f
mov dword [esp + 0x54], ecx
mov dword [esp + 0x30], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
call fcn.004edf20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x53a500
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
lea eax, [0x66aac0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x7e34e0]
test ecx, ecx
jne 0x53a4d6
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
lea ecx, [0x667840]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x54]
call fcn.0045c920
lea edi, [ecx + 8]
mov eax, dword [esp + 0x50]
call fcn.0045c920
lea edi, [ecx + 0xc]
mov eax, dword [esp + 0x4c]
call fcn.0045c920
mov eax, ecx
jmp 0x53a4a8
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x688dda]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x6847af]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2a
lea ecx, [0x687d28]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x64d2c0]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x35
lea ecx, [0x68a4f0]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x6cadb0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
call fcn.0045b380
jmp fcn.00539b50