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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5d5ee8
sub esp, 0x7c
mov ecx, dword [esp + 0x80]
mov dword [ecx + 0x10], 0
mov edx, dword [0x84e4b0]
lea edi, [ecx + 0x14]
test edx, edx
jne 0x5d59dd
mov dword [ecx + 0x14], 0
jmp 0x5d59e4
xor eax, eax
call fcn.0045f3a0
mov dword [esp + 0x78], edi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
test eax, eax
je 0x5d5a01
mov eax, dword [eax + 0x14]
mov dword [esp], edx
call eax
mov ecx, dword [esp + 0x80]
lea eax, [ecx + 0x24]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], 9
mov dword [esp + 8], 9
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.005d52f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x24]
lea edi, [esp + 0x54]
lea esi, [esp + 0x14]
call fcn.0045fb32
lea edi, [esp + 0x48]
lea esi, [esp + 0x54]
call fcn.0045fb32
test eax, eax
jne 0x5d5e9f
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x80]
cmp dword [ecx + 0x20], eax
jb 0x5d5e6b
mov edx, dword [ecx + 0x30]
mov ebx, dword [edx]
mov dword [esp], eax
call ebx
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x80]
mov esi, dword [ebp]
mov edi, dword [ebp + 4]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
call fcn.00472140
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test eax, eax
jne 0x5d5e43
movzx eax, byte [esp + 0x49]
mov byte [esp + 0x33], al
mov eax, dword [0x8268a4]
lea ecx, [0x6358c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x33]
mov dword [esp + 8], eax
call fcn.0040c310
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x5d5b07
lea eax, [0x67cadc]
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
mov ebx, dword [esp + 0x80]
mov ebp, dword [ebx + 0x78]
mov ebx, dword [ebx + 0x18]
mov dword [esp], ebp
lea edi, [esp + 4]
lea esi, [esp + 0x48]
call fcn.0045fb32
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov edx, eax
mov ebx, dword [esp + 0x44]
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edx, ebp
mov ebp, dword [esp + 0x24]
mov esi, ebp
mov ebp, dword [esp + 0x20]
mov edi, ebp
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x5d5c60
lea eax, [0x6cf9f4]
cmp ebx, eax
jne 0x5d5c38
mov eax, dword [ecx + 4]
mov dword [esp + 0x74], eax
mov edx, dword [ecx]
mov dword [esp + 0x40], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x3c], ecx
lea ebx, [0x63c100]
mov dword [esp], ebx
call fcn.0040b470
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [0x84e4b0]
test ecx, ecx
jne 0x5d5bc5
mov ecx, dword [esp + 0x74]
mov dword [eax], ecx
jmp 0x5d5bd2
mov edi, eax
mov eax, dword [esp + 0x74]
call fcn.0045f3a0
mov eax, edi
lea ecx, [0x6cf47c]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x10], ecx
mov ecx, dword [0x84e4b0]
test ecx, ecx
jne 0x5d5bf1
mov dword [edx + 0x14], eax
jmp 0x5d5bfa
mov edi, dword [esp + 0x78]
call fcn.0045f3a0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00408d20
mov eax, dword [esp + 4]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea ecx, [0x6cf9b8]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x7c
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], edx
add esp, 0x7c
ret
mov dword [esp + 0x74], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x70], esi
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
call fcn.005d5f00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x5d5e1b
mov eax, dword [esp + 0x80]
movzx ecx, byte [eax + 0x64]
test cl, cl
je 0x5d5d89
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.005d9fb0
mov eax, dword [esp + 8]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
lea edx, [0x6306a0]
mov dword [esp], edx
call fcn.0040b470
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
lea ecx, [0x65d560]
mov dword [eax], ecx
mov ecx, dword [0x84e4b0]
test ecx, ecx
jne 0x5d5d02
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], ecx
jmp 0x5d5d11
lea edi, [eax + 4]
mov eax, dword [esp + 0x80]
call fcn.0045f3a0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.00408e30
mov eax, dword [esp + 8]
lea ecx, [0x634440]
mov edx, dword [esp + 0x68]
mov dword [edx + 8], ecx
mov ecx, dword [0x84e4b0]
test ecx, ecx
jne 0x5d5d45
mov dword [edx + 0xc], eax
jmp 0x5d5d4d
lea edi, [edx + 0xc]
call fcn.0045f3a0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x70]
mov ebx, dword [ecx]
lea ebp, [0x66a9bb]
mov dword [esp], ebp
mov dword [esp + 4], 0x19
mov dword [esp + 8], edx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
mov edx, ecx
call ebx
mov eax, dword [esp + 0x80]
cmp byte [esp + 0x49], 1
jne 0x5d5deb
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x5d5deb
mov ecx, dword [esp + 0x74]
lea edx, [0x6cffdc]
cmp ecx, edx
jne 0x5d5ecb
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
call fcn.005d94c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
lea ebx, [0x6d000c]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
mov eax, dword [esp + 0x74]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x7c
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
add esp, 0x7c
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ebx
add esp, 0x7c
ret
mov eax, dword [0x827058]
mov ecx, dword [0x82705c]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
add esp, 0x7c
ret
mov dword [esp], ecx
lea eax, [0x6558a0]
mov dword [esp + 4], eax
lea eax, [0x63d660]
mov dword [esp + 8], eax
call fcn.00408b20
nop
call fcn.0045df90
jmp fcn.005d59a0