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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6281e7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x682d00]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x682d00]
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.00516940
mov eax, dword [esi + 0xc]
mov dword [esp + 0x230], 0
test eax, eax
jle 0x58e8d3
lea ecx, [esp + 0x12c]
call fcn.005af2f0
push esi
lea ecx, [esp + 0x130]
mov byte [esp + 0x234], 1
call fcn.005afb00
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x130]
call fcn.00546130
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.005af310
jmp 0x58e8d9
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.005595e0
test eax, eax
jne 0x58e92d
lea ecx, [esp + 0x20]
call fcn.00516990
lea ecx, [esp + 0x20]
mov dword [esp + 0x230], 0xffffffff
call fcn.004925b0
xor eax, eax
jmp 0x58efb5
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.005595e0
test eax, eax
je 0x58e909
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.0051f3d0
push eax
mov ecx, ebx
call fcn.005595e0
test eax, eax
je 0x58e909
lea ecx, [esp + 0x11c]
call fcn.005f2930
push ebx
lea ecx, [esp + 0x160]
call fcn.00571430
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.005f1fa0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 3
call fcn.005710a0
mov eax, dword [esp + 0x168]
cmp eax, dword [esp + 0x16c]
ja 0x58eee5
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
sub eax, 1
je 0x58edff
sub eax, 5
jne 0x58efd9
mov ecx, dword [esp + 0x17c]
push ecx
lea ecx, [esp + 0x120]
call fcn.0052ac50
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x128]
call fcn.0052b460
cmp eax, 2
jne 0x58ec65
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.00523bf0
add esp, 8
test eax, eax
jne 0x58eb43
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.00523bf0
add esp, 8
test eax, eax
jne 0x58eb43
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.00523bf0
add esp, 8
test eax, eax
jne 0x58eb28
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.00523bf0
add esp, 8
test eax, eax
je 0x58efd9
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call fcn.005ee880
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.00523bf0
add esp, 8
test eax, eax
jne 0x58eec5
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.00523bf0
add esp, 8
test eax, eax
jne 0x58eec5
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.00523bf0
add esp, 8
test eax, eax
jne 0x58ec45
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.00523bf0
add esp, 8
test eax, eax
je 0x58efd9
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x30]
call fcn.005ee880
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
jmp 0x58eec5
cmp eax, 1
jne 0x58eec5
cmp dword [esp + 0x70], 0
jne 0x58ed78
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.00523bf0
add esp, 8
test eax, eax
jne 0x58ed6e
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.00523bf0
add esp, 8
test eax, eax
jne 0x58ed6e
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.00523bf0
add esp, 8
test eax, eax
jne 0x58ed6e
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.00523bf0
add esp, 8
test eax, eax
je 0x58efd9
mov eax, dword [esp + 0x2c]
push eax
jmp 0x58ee41
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.00523bf0
add esp, 8
test eax, eax
jne 0x58eec5
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.00523bf0
add esp, 8
test eax, eax
jne 0x58eec5
jmp 0x58ee3c
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.0058b530
add esp, 0x14
test eax, eax
je 0x58eec5
cmp eax, 1
jne 0x58ee59
mov ecx, dword [esp + 0x44]
and ecx, 0x44
cmp cl, 0x44
je 0x58efd9
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
call fcn.005ee880
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
jmp 0x58eec5
cmp eax, 2
jne 0x58eec5
mov eax, dword [esp + 0x44]
mov ecx, eax
and ecx, 0x44
cmp cl, 0x44
je 0x58efd9
mov ebx, dword [esp + 0x48]
mov edx, ebx
and edx, 0x44
cmp dl, 0x44
je 0x58efd9
test al, 4
je 0x58eea1
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.005ee880
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
test bl, 4
je 0x58eec1
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.005ee880
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.005710d0
mov eax, dword [esp + 0x168]
cmp eax, dword [esp + 0x16c]
jbe 0x58e9d2
lea ecx, [esp + 0x4c]
call fcn.00516940
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.0055fbf0
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x4c], edi
jle 0x58ef54
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.00523bf0
add esp, 8
test eax, eax
jne 0x58ef4d
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.0051f3d0
push eax
mov ecx, ebx
call fcn.005595e0
test eax, eax
je 0x58f00c
inc edi
cmp edi, dword [esp + 0x4c]
jl 0x58ef16
lea ecx, [esp + 0x20]
call fcn.00516990
lea ecx, [esp + 0x4c]
call fcn.00516990
lea ecx, [esp + 0x4c]
mov byte [esp + 0x230], 3
call fcn.004925b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 2
call fcn.005f1f90
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 0
call fcn.00571010
lea ecx, [esp + 0x20]
mov dword [esp + 0x230], 0xffffffff
call fcn.004925b0
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.005f9aee
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00516990
lea ecx, [esp + 0x2c]
mov byte [esp + 0x230], 2
call fcn.005f1f90
lea ecx, [esp + 0x15c]
mov byte [esp + 0x230], 0
call fcn.00571010
jmp 0x58e912
lea ecx, [esp + 0x20]
call fcn.00516990
lea ecx, [esp + 0x4c]
call fcn.00516990
lea ecx, [esp + 0x4c]
mov byte [esp + 0x230], 3
call fcn.004925b0
jmp 0x58efe2