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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59f2de
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.00561bf0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x78]
cmp ebx, 2
jg 0x59ef66
cmp ebx, 1
jne 0x59ebef
mov eax, dword [0x7b5840]
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
lea ebx, [0x7b5840]
cmp dword [ebx + 4], edx
jne 0x59e8bf
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004025e0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x59e90e
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x25
lea ecx, [0x642e1e]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x61db80]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
lea ecx, [0x61d4c0]
mov dword [esp], ecx
call fcn.0040b460
mov edi, dword [esp + 4]
mov dword [esp + 0x2c], edi
mov eax, dword [0x7e0970]
test eax, eax
jne 0x59e94c
mov eax, dword [esp + 0x40]
mov dword [edi], eax
jmp 0x59e955
mov eax, dword [esp + 0x40]
call fcn.0045e4b0
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.0056e910
movzx eax, byte [esp + 0xc]
test al, al
je 0x59eba0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
mov dword [esp], edx
lea ebx, [0x636e80]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0056d640
movzx eax, byte [esp + 0xc]
test al, al
je 0x59eb51
lea eax, [esp + 0x5c]
mov dword [esp], eax
lea eax, [0x608880]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 4]
mov dword [esp + 8], ecx
call fcn.0056d640
movzx eax, byte [esp + 0xc]
test al, al
je 0x59eb02
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x59e9e3
xor ecx, ecx
jmp 0x59e9f6
movzx ecx, byte [ecx]
test cl, cl
je 0x59e9f1
mov ecx, 0xffffffff
jmp 0x59e9f6
mov ecx, 1
test ecx, ecx
jle 0x59eab3
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x59ea64
lea eax, [0x61ce00]
mov dword [esp], eax
call fcn.0040b460
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov ecx, dword [0x7e0970]
mov eax, dword [eax]
test ecx, ecx
jne 0x59ea31
mov dword [edi], eax
jmp 0x59ea36
call fcn.0045e4b0
lea eax, [0x61a180]
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 eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x32
lea ecx, [0x646627]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2a
lea ecx, [0x644673]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x21
lea ecx, [0x6417fd]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x19
lea ecx, [0x63e69c]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x63f8ca]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
cmp ebx, 2
jne 0x59f06c
lea eax, [0x61db80]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
lea ecx, [0x636e80]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0056d640
movzx eax, byte [esp + 0xc]
test al, al
je 0x59ef17
lea eax, [0x61db80]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
lea ecx, [0x61db80]
mov dword [esp], ecx
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
lea ecx, [0x61db80]
mov dword [esp], ecx
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
lea ecx, [0x61cce0]
mov dword [esp], ecx
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [0x7e0970]
test ecx, ecx
jne 0x59ecb4
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
jmp 0x59ece7
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x1c]
call fcn.0045e4b0
mov edi, ecx
mov eax, dword [esp + 0x40]
call fcn.0045e4b0
lea edx, [ecx + 4]
mov eax, dword [esp + 0x3c]
mov edi, edx
call fcn.0045e4b0
lea edi, [ecx + 8]
mov eax, dword [esp + 0x38]
call fcn.0045e4b0
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.0056e910
movzx eax, byte [esp + 0xc]
test al, al
jne 0x59ed25
mov eax, 1
jmp 0x59ed7e
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
mov dword [esp], edx
lea ebx, [0x636e80]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0056d640
movzx eax, byte [esp + 0xc]
test al, al
jne 0x59ed55
mov eax, 1
jmp 0x59ed7e
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x44]
mov dword [esp], edx
lea ebx, [0x636e80]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0056d640
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x59eec8
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x44]
mov dword [esp], edx
lea edx, [0x636e80]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0056d640
movzx eax, byte [esp + 0xc]
test al, al
je 0x59eec8
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x59edc6
xor ecx, ecx
jmp 0x59edd9
movzx ecx, byte [ecx]
test cl, cl
je 0x59edd4
mov ecx, 0xffffffff
jmp 0x59edd9
mov ecx, 1
test ecx, ecx
jle 0x59ee4b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x59edea
xor ecx, ecx
jmp 0x59edfd
movzx ecx, byte [ecx]
test cl, cl
je 0x59edf8
mov ecx, 0xffffffff
jmp 0x59edfd
mov ecx, 1
test ecx, ecx
jle 0x59ee4b
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x59ee0f
xor ecx, ecx
jmp 0x59ee22
movzx ecx, byte [ecx]
test cl, cl
je 0x59ee1d
mov ecx, 0xffffffff
jmp 0x59ee22
mov ecx, 1
test ecx, ecx
jle 0x59ee4b
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x59ee34
xor ecx, ecx
jmp 0x59ee47
movzx ecx, byte [ecx]
test cl, cl
je 0x59ee42
mov ecx, 0xffffffff
jmp 0x59ee47
mov ecx, 1
test ecx, ecx
jg 0x59ee9a
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x24
lea ecx, [0x6428a1]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea ecx, [0x6075c0]
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, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x63f892]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x63f8ae]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
cmp ebx, 3
je 0x59f09c
cmp ebx, 4
jne 0x59f06c
mov ebx, dword [esp + 0x7c]
mov ebx, dword [ebx + 0x34]
test ebx, ebx
jne 0x59f01d
cmp ecx, 0x20
je 0x59efdb
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x23
lea ecx, [0x6422ba]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408ea0
mov eax, dword [esp + 0xc]
lea ecx, [0x616dc0]
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, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x31
lea ecx, [0x6462d9]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
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], 0
mov dword [esp + 0x8c], 0
add esp, 0x74
ret
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x50]
mov dword [esp], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
call fcn.0056e400
movzx eax, byte [esp + 8]
test al, al
je 0x59f28f
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.005ad6a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x59f240
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00556560
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x59f1f1
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
lea eax, [0x62e480]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [0x7e0970]
test ecx, ecx
jne 0x59f19b
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
jmp 0x59f1c3
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x30]
call fcn.0045e4b0
lea edi, [ecx + 8]
mov eax, dword [esp + 0x24]
call fcn.0045e4b0
lea edi, [ecx + 0xc]
mov eax, dword [esp + 0x20]
call fcn.0045e4b0
mov eax, ecx
lea ecx, [0x62b980]
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, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x6455eb]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x64116b]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
lea eax, [0x618d20]
mov dword [esp], eax
call fcn.0040b460
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1e
lea ecx, [0x640461]
mov dword [eax], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x690a60]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x74
ret
call fcn.0045d0a0
jmp fcn.0059e820