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

Disassembly:
push 0xffffffffffffffff
push 0x629ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x685e38]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x1f4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x208]
mov bl, byte [esi + 8]
mov edi, dword [esp + 0x204]
shr bl, 4
and bl, 0xf
lea ecx, [esp + 0x28]
mov byte [esp + 0x13], bl
call fcn.00517b60
lea ecx, [esp + 0x84]
mov dword [esp + 0x1fc], 0
call fcn.0051b930
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1fc], 1
call fcn.0051b930
lea ecx, [esp + 0x14]
mov byte [esp + 0x1fc], 2
call fcn.00520ea0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1fc], 3
call fcn.00520ea0
push esi
lea ecx, [esp + 0xd0]
mov byte [esp + 0x200], 4
call fcn.00572480
mov eax, dword [esp + 0xd8]
mov byte [esp + 0x1fc], 5
cmp eax, dword [esp + 0xdc]
ja 0x58e961
lea esp, [esp]
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 0x11
je 0x58e928
cmp eax, 0x16
je 0x58e8c0
cmp eax, 0x20
jne 0x58e941
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ecx + 0x24]
lea edx, [edx + edx - 4]
cmp edx, eax
jg 0x58e844
push 0
push eax
lea eax, [esp + 0x58]
push eax
mov esi, ecx
call fcn.00581480
push eax
add esi, 4
push esi
lea ecx, [esp + 0x78]
call fcn.0057e070
push eax
push edi
mov byte [esp + 0x204], 7
call fcn.0058b5c0
add esp, 8
test eax, eax
lea ecx, [esp + 0x68]
sete bl
mov byte [esp + 0x1fc], 5
call fcn.0057e100
test bl, bl
jne 0x58e9ff
mov bl, byte [esp + 0x13]
jmp 0x58e941
test dword [ecx + 0x18], 0xfffffffd
je 0x58e88e
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.00582690
lea ecx, [esp + 0x84]
push ecx
push edi
call fcn.00534c10
add esp, 8
test eax, eax
je 0x58e9ff
lea edx, [esp + 0xa8]
push edx
push edi
call fcn.00534c10
jmp 0x58e936
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x18]
push edx
call fcn.005820f0
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00534f60
add esp, 8
test eax, eax
je 0x58e9ff
lea ecx, [esp + 0x3c]
push ecx
push edi
call fcn.00534f60
jmp 0x58e936
cmp bl, 1
jne 0x58e918
mov ecx, dword [esp + 0xec]
call fcn.00521dc0
test eax, eax
je 0x58e918
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x58]
push eax
call edx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x200], 6
call fcn.00518080
lea ecx, [esp + 0x58]
mov byte [esp + 0x1fc], 5
call fcn.004f2200
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00535920
jmp 0x58e936
mov ecx, dword [esp + 0xec]
push ecx
push edi
call fcn.0058b5c0
jmp 0x58e936
mov edx, dword [esp + 0xec]
push edx
push edi
call fcn.0058e560
add esp, 8
test eax, eax
je 0x58e9ff
lea ecx, [esp + 0xcc]
call fcn.00572760
mov eax, dword [esp + 0xd8]
cmp eax, dword [esp + 0xdc]
jbe 0x58e7b0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1fc], 4
call fcn.005717a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1fc], 3
call fcn.00520f30
lea ecx, [esp + 0x14]
mov byte [esp + 0x1fc], 2
call fcn.00520f30
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1fc], 1
call fcn.0051c420
lea ecx, [esp + 0x84]
mov byte [esp + 0x1fc], 0
call fcn.0051c420
lea ecx, [esp + 0x28]
mov dword [esp + 0x1fc], 0xffffffff
call fcn.00517ca0
mov eax, 1
mov ecx, dword [esp + 0x1f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.005fb9ce
add esp, 0x1f0
ret
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1fc], 4
call fcn.005717a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1fc], 3
call fcn.00520f30
lea ecx, [esp + 0x14]
mov byte [esp + 0x1fc], 2
call fcn.00520f30
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1fc], 1
call fcn.0051c420
lea ecx, [esp + 0x84]
mov byte [esp + 0x1fc], 0
call fcn.0051c420
lea ecx, [esp + 0x28]
mov dword [esp + 0x1fc], 0xffffffff
call fcn.00517ca0
xor eax, eax
jmp 0x58e9d8