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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59d779
sub esp, 0x60
lea eax, [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.00552500
movzx eax, byte [esp + 0xc]
test al, al
je 0x59d455
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x59d4ce
lea eax, [0x65cd40]
mov dword [esp], eax
call fcn.0040b830
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x21
lea ecx, [0x692292]
mov dword [eax], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0xa54a34]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x60
ret
mov ecx, edx
mov edx, ebp
mov ebp, eax
mov eax, ebx
mov ebx, edi
mov edi, dword [esp + 0x68]
test edi, edi
je 0x59d6c5
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea eax, [esp + 0x64]
mov dword [esp], eax
lea ecx, [esp + 0x54]
mov dword [esp + 4], ecx
call fcn.00551d10
movzx eax, byte [esp + 8]
test al, al
je 0x59d656
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ebx, dword [0xbb87fc]
mov ebp, dword [0xbb87f8]
test ebx, ebx
je 0x59d54e
mov dword [esp + 0x3c], ebx
xor eax, eax
jmp 0x59d702
xor eax, eax
xor ecx, ecx
test al, al
je 0x59d5c1
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov ebx, dword [esp + 0x30]
cmp ebx, edx
jb 0x59d56b
mov ebp, dword [esp + 0x4c]
jmp 0x59d5ac
mov dword [esp + 0x34], ecx
lea ecx, [0x652e40]
mov dword [esp], ecx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.0044ba20
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
mov ebp, edx
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [ebp + eax*4], ecx
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x48]
jmp 0x59d4c4
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x24]
cmp ebx, edx
jb 0x59d5d6
mov esi, dword [esp + 0x48]
jmp 0x59d60d
lea eax, [0x6611c0]
mov dword [esp], eax
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.0044ba20
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea edx, [eax + 1]
mov ecx, dword [esp + 0x20]
mov ebx, ebp
lea ecx, [ecx + ecx*2]
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov edi, edx
mov edx, dword [esp + 0x5c]
mov dword [esi + ecx*4 + 4], ebp
mov dword [esi + ecx*4 + 8], edx
mov edx, dword [0xbe5550]
lea ebp, [esi + ecx*4]
test edx, edx
jne 0x59d638
mov dword [esi + ecx*4], eax
jmp 0x59d643
mov ecx, edi
mov edi, ebp
call fcn.00462ce0
mov edi, ecx
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x4c]
mov eax, ebx
mov ebx, dword [esp + 0x30]
jmp 0x59d4c4
lea eax, [0x65cd40]
mov dword [esp], eax
call fcn.0040b830
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x21
lea ecx, [0x692292]
mov dword [eax], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0xa54a34]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x60
ret
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x60
ret
add ebp, 0x10
mov eax, esi
mov esi, dword [ebp + 4]
mov edi, esi
mov esi, dword [ebp]
nop
cmp dword [ebp + 8], ecx
jne 0x59d730
mov dword [esp + 0x50], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
jmp 0x59d74f
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x50]
lea esi, [eax + 1]
cmp ebx, esi
jg 0x59d6fd
jmp 0x59d54e
lea ebx, [ebp + 1]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
cmp ebp, ecx
jge 0x59d765
jae 0x59d771
mov esi, dword [edx + ebp*4]
lea ebx, [edi + ebp*4]
cmp dword [ebx], esi
je 0x59d73c
jmp 0x59d728
mov eax, 1
mov ecx, esi
jmp 0x59d552
mov eax, ebp
call fcn.00462d60
nop
call fcn.004618d0
jmp fcn.0059d410