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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62a197
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x685e38]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x20]
call fcn.00517a80
mov eax, dword [esi + 0xc]
mov dword [esp + 0x230], 0
test eax, eax
jle 0x58ff73
lea ecx, [esp + 0x12c]
call fcn.005b09c0
push esi
lea ecx, [esp + 0x130]
mov byte [esp + 0x234], 1
call fcn.005b11c0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x130]
call fcn.005477e0
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx]
lea ecx, [esp + 0x12c]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x230], 0
call fcn.005b09e0
jmp 0x58ff79
mov dword [esp + 0x40], esi
mov ebx, esi
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 8]
mov esi, dword [edi + 4]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x44]
mov dword [esp + 0x3c], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
call fcn.0055ac90
test eax, eax
jne 0x58ffcd
lea ecx, [esp + 0x20]
call fcn.00517ad0
lea ecx, [esp + 0x20]
mov dword [esp + 0x230], 0xffffffff
call fcn.00405850
xor eax, eax
jmp 0x590655
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x44]
mov dword [esp + 0x48], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x48], eax
call fcn.0055ac90
test eax, eax
je 0x58ffa9
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.005204b0
push eax
mov ecx, ebx
call fcn.0055ac90
test eax, eax
je 0x58ffa9
lea ecx, [esp + 0x11c]
call fcn.005f4550
push ebx
lea ecx, [esp + 0x160]
call fcn.00572ac0
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x68]
push eax
mov ecx, edi
mov byte [esp + 0x234], 2
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], edx
call fcn.005f3af0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 3
call fcn.00572730
mov eax, dword [esp + 0x168]
cmp eax, dword [esp + 0x16c]
ja 0x590585
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
sub eax, 1
je 0x59049f
sub eax, 5
jne 0x590679
mov ecx, dword [esp + 0x17c]
push ecx
lea ecx, [esp + 0x120]
call fcn.0052bdd0
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x128]
call fcn.0052c5e0
cmp eax, 2
jne 0x590305
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x114], ecx
lea ecx, [esp + 0x114]
mov dword [esp + 0x118], edx
push ecx
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], eax
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x5901e3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc0], ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 0xcc], edx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0xd0]
push edx
mov dword [esp + 0xd8], eax
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x5901e3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0xdc]
push edx
add eax, 4
push eax
mov dword [esp + 0xe8], ecx
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x5901c8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x17c]
lea eax, [esp + 0xec]
push eax
add ecx, 0xc
push ecx
mov dword [esp + 0xf8], edx
call fcn.00524de0
add esp, 8
test eax, eax
je 0x590679
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call fcn.005effb0
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xfc]
mov dword [esp + 0x100], ecx
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edx
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x590565
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x108], eax
lea eax, [esp + 0x104]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0xa0], edx
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x590565
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x17c]
lea ecx, [esp + 0xe4]
push ecx
add edx, 4
push edx
mov dword [esp + 0xf0], eax
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x5902e5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0xa4]
push edx
add eax, 0xc
push eax
mov dword [esp + 0xb0], ecx
call fcn.00524de0
add esp, 8
test eax, eax
je 0x590679
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x30]
call fcn.005effb0
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
jmp 0x590565
cmp eax, 1
jne 0x590565
cmp dword [esp + 0x70], 0
jne 0x590418
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x74]
mov dword [esp + 0x78], eax
push edx
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], ecx
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x59040e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov dword [esp + 0xf8], edx
lea edx, [esp + 0xf4]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0xc8]
push eax
mov dword [esp + 0xd0], ecx
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x59040e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x17c]
lea eax, [esp + 0x10c]
push eax
add ecx, 4
push ecx
mov dword [esp + 0x118], edx
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x59040e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x17c]
lea ecx, [esp + 0xd4]
push ecx
add edx, 0xc
push edx
mov dword [esp + 0xe0], eax
call fcn.00524de0
add esp, 8
test eax, eax
je 0x590679
mov eax, dword [esp + 0x2c]
push eax
jmp 0x5904e1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], ecx
push eax
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], edx
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x590565
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x74], edx
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x590565
jmp 0x5904dc
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x180]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push edi
call fcn.0058cbd0
add esp, 0x14
test eax, eax
je 0x590565
cmp eax, 1
jne 0x5904f9
mov ecx, dword [esp + 0x44]
and ecx, 0x44
cmp cl, 0x44
je 0x590679
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call fcn.005effb0
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
jmp 0x590565
cmp eax, 2
jne 0x590565
mov eax, dword [esp + 0x44]
mov ecx, eax
and ecx, 0x44
cmp cl, 0x44
je 0x590679
mov ebx, dword [esp + 0x48]
mov edx, ebx
and edx, 0x44
cmp dl, 0x44
je 0x590679
test al, 4
je 0x590541
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.005effb0
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
test bl, 4
je 0x590561
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.005effb0
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x15c]
call fcn.00572760
mov eax, dword [esp + 0x168]
cmp eax, dword [esp + 0x16c]
jbe 0x590072
lea ecx, [esp + 0x4c]
call fcn.00517a80
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push edi
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
mov byte [esp + 0x240], 4
call fcn.005612a0
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x4c], edi
jle 0x5905f4
mov ecx, dword [esp + 0x54]
mov esi, dword [ecx + edi*4]
lea edx, [esi + 0xc]
push edx
lea eax, [esi + 4]
push eax
call fcn.00524de0
add esp, 8
test eax, eax
jne 0x5905ed
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.005204b0
push eax
mov ecx, ebx
call fcn.0055ac90
test eax, eax
je 0x5906ac
inc edi
cmp edi, dword [esp + 0x4c]
jl 0x5905b6
lea ecx, [esp + 0x20]
call fcn.00517ad0
lea ecx, [esp + 0x4c]
call fcn.00517ad0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x230], 3
call fcn.00405850
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 2
call fcn.005f3b00
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 0
call fcn.005726a0
lea ecx, [esp + 0x20]
mov dword [esp + 0x230], 0xffffffff
call fcn.00405850
mov eax, 1
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005fb9ce
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00517ad0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 2
call fcn.005f3b00
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 0
call fcn.005726a0
jmp 0x58ffb2
lea ecx, [esp + 0x20]
call fcn.00517ad0
lea ecx, [esp + 0x4c]
call fcn.00517ad0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x230], 3
call fcn.00405850
jmp 0x590682