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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6246b7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x67dc50]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x67dc50]
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.00513f30
mov eax, dword [esi + 0xc]
mov dword [esp + 0x230], 0
test eax, eax
jle 0x58ce13
lea ecx, [esp + 0x12c]
call fcn.005abd10
push esi
lea ecx, [esp + 0x130]
mov byte [esp + 0x234], 1
call fcn.005ac510
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x130]
call fcn.00542d50
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.005abd30
jmp 0x58ce19
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.005561d0
test eax, eax
jne 0x58ce6d
lea ecx, [esp + 0x20]
call fcn.00513f80
lea ecx, [esp + 0x20]
mov dword [esp + 0x230], 0xffffffff
call fcn.0048f310
xor eax, eax
jmp 0x58d52f
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.005561d0
test eax, eax
je 0x58ce49
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.0051c840
push eax
mov ecx, ebx
call fcn.005561d0
test eax, eax
je 0x58ce49
lea ecx, [esp + 0x11c]
call fcn.00517a00
push ebx
lea ecx, [esp + 0x160]
call fcn.0056df50
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.00405fd0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 3
call fcn.0056dbc0
mov eax, dword [esp + 0x168]
cmp eax, dword [esp + 0x16c]
ja 0x58d456
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
sub eax, 1
je 0x58d370
sub eax, 5
jne 0x58d2b6
mov ecx, dword [esp + 0x17c]
push ecx
lea ecx, [esp + 0x120]
call fcn.00528050
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x128]
call fcn.00528860
cmp eax, 2
jne 0x58d1a5
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.00521130
add esp, 8
test eax, eax
jne 0x58d083
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.00521130
add esp, 8
test eax, eax
jne 0x58d083
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.00521130
add esp, 8
test eax, eax
jne 0x58d068
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.00521130
add esp, 8
test eax, eax
je 0x58d2b6
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call fcn.005eb180
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.00521130
add esp, 8
test eax, eax
jne 0x58d436
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.00521130
add esp, 8
test eax, eax
jne 0x58d436
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.00521130
add esp, 8
test eax, eax
jne 0x58d185
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.00521130
add esp, 8
test eax, eax
je 0x58d2b6
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x30]
call fcn.005eb180
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
jmp 0x58d436
cmp eax, 1
jne 0x58d436
cmp dword [esp + 0x70], 0
jne 0x58d2e9
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.00521130
add esp, 8
test eax, eax
jne 0x58d436
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.00521130
add esp, 8
test eax, eax
jne 0x58d436
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.00521130
add esp, 8
test eax, eax
jne 0x58d436
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.00521130
add esp, 8
test eax, eax
jne 0x58d436
lea ecx, [esp + 0x20]
call fcn.00513f80
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 2
call fcn.005ee4c0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 0
call fcn.0056db30
jmp 0x58ce52
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.00521130
add esp, 8
test eax, eax
jne 0x58d436
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.00521130
add esp, 8
test eax, eax
jne 0x58d436
jmp 0x58d3ad
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.00589a70
add esp, 0x14
test eax, eax
je 0x58d436
cmp eax, 1
jne 0x58d3ca
mov ecx, dword [esp + 0x44]
and ecx, 0x44
cmp cl, 0x44
je 0x58d2b6
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call fcn.005eb180
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
jmp 0x58d436
cmp eax, 2
jne 0x58d436
mov eax, dword [esp + 0x44]
mov ecx, eax
and ecx, 0x44
cmp cl, 0x44
je 0x58d2b6
mov ebx, dword [esp + 0x48]
mov edx, ebx
and edx, 0x44
cmp dl, 0x44
je 0x58d2b6
test al, 4
je 0x58d412
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.005eb180
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
test bl, 4
je 0x58d432
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.005eb180
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.0056dbf0
mov eax, dword [esp + 0x168]
cmp eax, dword [esp + 0x16c]
jbe 0x58cf12
lea ecx, [esp + 0x4c]
call fcn.00513f30
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.0055c730
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x4c], edi
jle 0x58d4ce
jmp 0x58d490
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.00521130
add esp, 8
test eax, eax
jne 0x58d4c7
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.0051c840
push eax
mov ecx, ebx
call fcn.005561d0
test eax, eax
je 0x58d553
inc edi
cmp edi, dword [esp + 0x4c]
jl 0x58d490
lea ecx, [esp + 0x20]
call fcn.00513f80
lea ecx, [esp + 0x4c]
call fcn.00513f80
lea ecx, [esp + 0x4c]
mov byte [esp + 0x230], 3
call fcn.0048f310
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 2
call fcn.005ee4c0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 0
call fcn.0056db30
lea ecx, [esp + 0x20]
mov dword [esp + 0x230], 0xffffffff
call fcn.0048f310
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.005f617e
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00513f80
lea ecx, [esp + 0x4c]
call fcn.00513f80
lea ecx, [esp + 0x4c]
mov byte [esp + 0x230], 3
call fcn.0048f310
jmp 0x58d2bf