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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x59cf31
sub esp, 0xa0
mov eax, dword [esp + 0xa4]
cmp byte [eax + 0x49], 0xff
je 0x59c73f
lea eax, [0x7c0710]
mov dword [esp], eax
call fcn.00466110
mov eax, dword [esp + 8]
lea ecx, [0x5fdc80]
cmp dword [esp + 4], ecx
je 0x59c6d1
lea eax, [0x6116e0]
mov dword [esp], eax
call fcn.0040b440
mov eax, dword [esp + 4]
mov dword [esp + 0x74], eax
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0xc8]
cmp ecx, edx
jg 0x59c6ee
ja 0x59cf2b
mov dword [eax + 0x28], ecx
jmp 0x59c738
lea eax, [0x606780]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004475c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc8]
mov edi, dword [esp + 0x74]
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov ecx, dword [0x7e77b0]
test ecx, ecx
jne 0x59c728
mov dword [edi + 0x24], eax
jmp 0x59c736
lea edx, [edi + 0x24]
mov ecx, edi
mov edi, edx
call fcn.0045e950
mov edi, ecx
mov eax, edi
mov edx, dword [eax + 0x28]
xor ecx, ecx
jmp 0x59c770
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
add esp, 0xa0
ret
mov dword [ebp + ecx*4], 0xffffffff
inc ecx
cmp ecx, edx
jge 0x59c783
mov ebx, dword [eax + 0x28]
mov ebp, dword [eax + 0x24]
cmp ecx, ebx
jb 0x59c767
jmp 0x59cf22
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x59c7db
nop
mov ecx, dword [esp + 0xa8]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x7e77b0]
test ecx, ecx
jne 0x59c7af
mov ecx, dword [esp + 0xac]
mov dword [eax + 0x18], ecx
jmp 0x59c7c2
lea edi, [eax + 0x18]
mov ecx, eax
mov eax, dword [esp + 0xac]
call fcn.0045e950
mov eax, ecx
mov byte [eax + 0x1c], 0
mov dword [eax + 0x20], 0
lea ecx, [eax + 0x14]
lea edx, [0x68c28c]
jmp 0x59c85b
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x59c81e
nop
mov edx, dword [esp + 0xb4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xb8]
mov dword [eax + 8], edx
mov edx, dword [0x7e77b0]
test edx, edx
jne 0x59c809
mov dword [eax], ecx
jmp 0x59c814
mov edi, eax
mov eax, ecx
call fcn.0045e950
mov eax, edi
lea edx, [0x68c268]
mov ecx, eax
jmp 0x59c85b
nop
mov ecx, dword [esp + 0xc0]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x7e77b0]
test ecx, ecx
jne 0x59c83f
mov ecx, dword [esp + 0xbc]
mov dword [eax + 0xc], ecx
jmp 0x59c852
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0xbc]
call fcn.0045e950
mov eax, ecx
lea ecx, [eax + 0xc]
lea edx, [0x68c2b0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x20], edx
mov eax, dword [edx + 0x20]
mov dword [esp], ecx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 4], ebx
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
cmp eax, 0xffffffff
jne 0x59c894
mov edx, 0xffffffff
xor ebx, ebx
jmp 0x59c8c7
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x20]
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebp, dword [esp + 0xc4]
lea esi, [ebp + ecx]
mov dword [esp + 4], esi
call edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov ebp, dword [esp + 0xc4]
test ebp, ebp
jne 0x59c8e3
mov esi, eax
mov edi, 0xffffffff
jmp 0x59c918
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], ebp
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0xc4]
mov esi, dword [esp + 0x34]
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xa4]
mov ebx, dword [edx + 0xc]
mov edx, dword [ebx + 0xc]
mov ebp, dword [ebx + 4]
mov ebx, dword [ebx]
cmp ebp, edx
jbe 0x59cf19
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
lea ebp, [edx + edx*8]
lea ebx, [ebx + ebp*4]
mov ebp, edi
lea edi, [esp + 0x7c]
mov esi, ebx
call fcn.0045f036
mov ecx, dword [esp + 0xc4]
test ecx, ecx
je 0x59c960
xor ebx, ebx
jmp 0x59c991
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ebp
mov dword [esp], eax
mov byte [esp + 8], cl
call fcn.0059b600
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
mov ebx, eax
mov eax, dword [esp + 0x3c]
test bl, bl
je 0x59c9dc
mov ebx, dword [esp + 0xa4]
mov esi, ebx
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x59c9a9
xor ebx, ebx
jmp 0x59c9e5
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0xa4]
mov ebx, eax
mov eax, dword [esp + 0x3c]
jmp 0x59c9e5
mov esi, dword [esp + 0xa4]
xor ebx, ebx
test bl, bl
jne 0x59c9f6
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
jmp 0x59cab9
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], esi
call ecx
movzx eax, byte [esp + 8]
test al, al
je 0x59cade
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x20]
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov esi, dword [esp + 0xc4]
add ecx, esi
mov dword [esp + 0x44], ecx
mov dword [esp + 4], ecx
call ebx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x20]
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov esi, dword [esp + 0x44]
lea edi, [esi + eax]
mov dword [esp + 4], edi
call ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x14]
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 4], esi
call ebx
mov eax, dword [esp + 0xa4]
mov edx, dword [eax + 0x3c]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov esi, eax
mov ebp, edi
mov eax, ecx
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
jmp 0x59cc09
xor eax, eax
test al, al
je 0x59cbae
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0xd0]
lea ebx, [edx + ecx]
mov dword [esp + 0x44], ebx
mov ebp, dword [eax + 0x24]
mov esi, dword [esp + 0xd4]
cmp esi, ebx
jb 0x59cb14
mov edi, dword [esp + 0xcc]
jmp 0x59cb5c
mov dword [esp + 0x78], ebp
mov dword [esp + 0x54], ecx
lea eax, [0x606780]
mov dword [esp], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00447740
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xd0]
mov ebp, dword [esp + 0x78]
mov edi, eax
mov esi, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x54], esi
mov dword [esp + 0x78], edi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0045f270
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0059c590
mov eax, dword [esp + 0x78]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xe0], eax
add esp, 0xa0
ret
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0059c590
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
add esp, 0xa0
ret
mov eax, ebp
mov ebp, esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0xa4]
mov edi, ebx
mov ebx, dword [esp + 0x44]
mov ebx, edx
mov edx, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
mov ebx, dword [esi + 0xc]
mov ebp, dword [ebx + 4]
mov ebx, dword [ebx]
cmp edx, ebp
jae 0x59cf10
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], edi
lea edx, [edx + edx*8]
lea edx, [ebx + edx*4]
mov ebx, edi
lea edi, [esp + 0x7c]
mov ebp, esi
mov esi, edx
call fcn.0045f036
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x50], ecx
movzx edx, byte [esp + 0x7c]
cmp dl, 5
ja 0x59cd54
mov dword [esp + 0x4c], eax
cmp dl, 2
ja 0x59ccf7
cmp dl, 1
jbe 0x59ccb7
mov edx, dword [esp + 0x84]
mov esi, ebp
mov ebp, dword [esp + 0x74]
mov edi, ebx
mov ebx, dword [ebp + 0x28]
mov ebp, dword [ebp + 0x24]
cmp edx, ebx
jge 0x59cc92
jae 0x59cf07
mov ebx, dword [esp + 0x54]
mov dword [ebp + edx*4], ebx
jmp 0x59cc96
mov ebx, dword [esp + 0x54]
mov eax, esi
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x4c]
mov ebx, edi
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
jmp 0x59cbe2
lea eax, [esp + 0x7c]
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
call fcn.0059d530
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
jmp 0x59cbe2
cmp dl, 3
jne 0x59ce83
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x40]
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 8], cl
call fcn.0059b600
movzx eax, byte [esp + 0xc]
test al, al
je 0x59ce7c
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
jmp 0x59cbe2
cmp dl, 7
ja 0x59cdb4
cmp dl, 6
jne 0x59cd80
mov esi, dword [esp + 0x40]
mov ebp, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0xa4]
jmp 0x59cbe2
lea eax, [esp + 0x7c]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00595a80
cmp dword [esp + 8], 0xffffffff
je 0x59cec0
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
jmp 0x59ce04
cmp dl, 8
jne 0x59cddf
mov edx, dword [esp + 0x8c]
mov eax, ebp
mov ebp, dword [esp + 0x88]
test edx, edx
jbe 0x59cef4
mov edx, dword [esp + 0x30]
cmp dword [ebp], edx
je 0x59ce04
jmp 0x59cec7
cmp dl, 9
jne 0x59cdec
mov eax, ebp
mov edx, dword [esp + 0x30]
jmp 0x59ce04
cmp dl, 0xa
jne 0x59cedc
mov edx, dword [esp + 0x30]
cmp edx, 0xa
je 0x59ced5
mov eax, ebp
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x59cece
mov esi, edx
mov edx, dword [esp + 0x54]
add edx, ebp
cmp ebx, 0xffffffff
jne 0x59ce25
mov ebp, ebx
mov edi, dword [esp + 0x28]
jmp 0x59ce67
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebp, dword [esp + 0x28]
lea esi, [edx + ebp]
mov dword [esp + 4], esi
call ecx
mov edi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ebx, edi
mov edi, eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
jmp 0x59cbe2
xor eax, eax
jmp 0x59cae0
cmp dl, 4
jne 0x59ceb9
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x28]
mov ebp, dword [edx + 0x24]
test ebx, ebx
je 0x59ceaf
mov dword [ebp], 0
mov ecx, dword [edx + 0x28]
mov ebx, dword [edx + 0x24]
cmp ecx, 1
jbe 0x59cefd
mov eax, dword [esp + 0x54]
mov dword [ebx + 4], eax
mov eax, 1
jmp 0x59cae0
xor eax, eax
jmp 0x59cae0
xor eax, eax
jmp 0x59cae0
xor eax, eax
jmp 0x59cae0
xor eax, eax
jmp 0x59cae0
xor eax, eax
jmp 0x59cae0
lea eax, [0x606f80]
mov dword [esp], eax
lea eax, [0x68b5b8]
mov dword [esp + 4], eax
call fcn.004337b0
xor eax, eax
mov ecx, edx
call fcn.0045e9d0
mov eax, 1
call fcn.0045e9d0
mov eax, edx
mov ecx, ebx
call fcn.0045e9e0
mov eax, edx
mov ecx, ebp
call fcn.0045e9d0
mov eax, edx
mov ecx, ebp
call fcn.0045e9d0
mov eax, ecx
mov ecx, ebx
call fcn.0045e9d0
call fcn.0045ea10
nop
call fcn.0045d540
jmp fcn.0059c670