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

Disassembly:
push 0xffffffffffffffff
push 0x639798
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6f7654]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 6], 0
mov edi, dword [esp + 0x7c]
je 0x58d83c
cmp dword [edi + 0x24], 3
jne 0x58d83c
mov eax, dword [edi + 0x20]
mov eax, dword [eax*4 + 0x68af68]
cmp eax, 9
je 0x58d83c
cmp eax, 0xa
je 0x58d83c
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push ecx
push edi
push edx
push eax
mov ecx, ebx
call fcn.00588320
jmp 0x58db7b
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x78]
xor ebp, ebp
mov dword [esp + 0x14], ebp
push edi
cmp eax, 3
jne 0x58d861
mov edx, dword [ecx]
mov eax, dword [esp + 0x78]
mov edx, dword [edx + 0x14]
push eax
call edx
mov dword [esp + 0x14], eax
jmp 0x58d879
mov eax, dword [ecx]
mov edx, dword [esp + 0x78]
mov eax, dword [eax + 0x10]
push edx
call eax
test al, al
je 0x58d879
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x30]
call fcn.0058c1a0
mov ecx, edi
mov dword [esp + 0x6c], ebp
call fcn.0052a0e0
test al, al
je 0x58d947
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov eax, dword [esp + 0x74]
mov edx, dword [edx + 0x144]
push ebp
push 0xffffffffffffffff
push 0xa
push edi
push eax
call edx
mov esi, eax
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x58d8c0
lea ebp, [eax + 4]
lea ebx, [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58d8cc
lea ecx, [eax + 4]
jmp 0x58d8ce
xor ecx, ecx
mov eax, dword [esi + 4]
lea eax, [ecx + eax*4]
cmp ebp, eax
je 0x58d8e7
push ebp
lea ecx, [esp + 0x34]
call fcn.00536750
add ebp, 4
jmp 0x58d8c0
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov ebp, eax
cmp dword [esp + 0x3c], eax
jbe 0x58d906
call fcn.005eb286
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
cmp esi, eax
jbe 0x58d91b
call fcn.005eb286
mov eax, dword [esp + 0x30]
test eax, eax
je 0x58d929
cmp eax, dword [esp + 0x20]
je 0x58d92e
call fcn.005eb286
cmp esi, ebp
je 0x58d945
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ebp
push esi
call fcn.0058cf40
add esp, 0x14
xor ebp, ebp
xor eax, eax
cmp dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jle 0x58db51
mov esi, dword [esp + 0x80]
cmp dword [edi + 0x24], 3
mov dword [esp + 0x80], eax
je 0x58d976
mov dword [esp + 0x80], 0xffffffff
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push esi
push edi
push ebp
push eax
mov ecx, ebx
call fcn.00587f80
mov ecx, dword [edi + 0x20]
cmp dword [ecx*4 + 0x68af68], 0xa
jne 0x58db91
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x24]
lea edi, [ebx + 0x1c]
push ecx
mov ecx, edi
mov dword [esp + 0x24], edx
call fcn.00586d70
mov edx, dword [edi + 0x18]
mov ebp, dword [esp + 0x20]
mov edi, dword [edi]
mov dword [esp + 0x2c], edx
test ebp, ebp
je 0x58d9ca
cmp ebp, edi
je 0x58d9cf
call fcn.005eb286
mov edi, dword [esp + 0x24]
cmp edi, dword [esp + 0x2c]
jne 0x58d9df
lea eax, [esp + 0x1c]
jmp 0x58d9f5
test ebp, ebp
jne 0x58da2d
call fcn.005eb286
cmp edi, dword [ebp + 0x18]
jne 0x58d9f2
call fcn.005eb286
lea eax, [edi + 0x10]
mov edi, dword [esp + 0x7c]
cmp dword [edi + 0x24], 3
mov ebp, dword [eax]
jne 0x58da4d
mov ecx, edi
call fcn.0052a0e0
test al, al
je 0x58da32
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
sar eax, 2
cmp edi, eax
jb 0x58da24
call fcn.005eb286
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + edi*4]
jmp 0x58da60
mov ebp, dword [ebp]
jmp 0x58d9e8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edx, dword [edx + 0xcc]
push eax
mov eax, dword [esp + 0x78]
push edi
push eax
call edx
jmp 0x58da60
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx]
mov edx, dword [esp + 0x74]
mov eax, dword [eax + 0x68]
push 0
push edi
push edx
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
mov edx, dword [edx + 0x30]
mov edi, eax
movzx eax, byte [ebx + 4]
push eax
mov eax, dword [esp + 0x84]
push ecx
push eax
push edi
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebp
call edx
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
mov byte [esp + 0x6c], 1
jb 0x58da97
mov eax, dword [eax + 4]
jmp 0x58da9a
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.00586d20
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x6c], 0
jb 0x58dabc
mov eax, dword [esp + 0x4c]
push eax
call fcn.005ea386
add esp, 4
push 2
push 0x68b078
lea ecx, [esi + 0x10]
call fcn.004058c0
push esi
push edi
mov ecx, ebx
call fcn.0058ddc0
mov ecx, esi
call fcn.00589770
movzx eax, byte [ebx + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
mov edx, dword [edx + 0x34]
push eax
mov eax, dword [esp + 0x84]
push ecx
push eax
push edi
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebp
call edx
mov ecx, dword [eax + 0x14]
mov edi, 0x10
mov byte [esp + 0x6c], 2
cmp dword [eax + 0x18], edi
jb 0x58db14
mov eax, dword [eax + 4]
jmp 0x58db17
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.00586d20
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x60], edi
jb 0x58db38
mov eax, dword [esp + 0x4c]
push eax
call fcn.005ea386
add esp, 4
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jl 0x58d95e
xor ebp, ebp
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x58db62
push eax
call fcn.005ea386
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
call fcn.005ea386
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
push 2
push 0x68b07c
mov ecx, esi
call fcn.00586d20
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push esi
push ecx
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0058df80
cmp byte [ebx + 4], 0
push 1
mov ecx, esi
je 0x58dbcf
push 0x68b0a8
call fcn.00586d20
jmp 0x58db3c
push 0x665244
call fcn.00586d20
jmp 0x58db3c