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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x499d10
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4b8744]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4b8744]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x58f9c9
mov al, byte [ebx]
cmp al, 0x2b
je 0x58f9c4
cmp al, 0x2d
jne 0x58f9c9
xor edi, edi
inc edi
jmp 0x58f9cb
xor edi, edi
mov ecx, esi
call fcn.00591b96
mov ecx, 0x3000
and eax, ecx
cmp eax, ecx
je 0x58f9e4
mov edx, 0x4a34f0
jmp 0x58fa08
lea eax, [edi + 2]
mov edx, 0x4a34ec
cmp eax, dword [esp + 0x14]
ja 0x58fa08
cmp byte [ebx + edi], 0x30
jne 0x58fa08
mov cl, byte [ebx + edi + 1]
cmp cl, 0x78
je 0x58fa06
cmp cl, 0x58
jne 0x58fa08
mov edi, eax
push edx
push ebx
call fcn.005ff470
mov dword [esp + 0x38], eax
push 0x2e
pop eax
mov word [esp + 0x20], ax
call fcn.005ff347
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.005ff470
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00591b27
and dword [esp + 0x80], 0
push eax
call fcn.00591936
or dword [esp + 0x84], 0xffffffff
mov esi, eax
pop ecx
lea ecx, [esp + 0x24]
call fcn.00591b0f
push 0x30
mov ecx, esi
call fcn.005919d9
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x48]
mov byte [esp + 0x28], al
call fcn.00590b2e
push 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], 1
call fcn.0058b5f9
push eax
mov eax, dword [esp + 0x18]
mov ecx, esi
add eax, ebx
push eax
push ebx
call fcn.00590ae5
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
call fcn.00591b27
push eax
mov byte [esp + 0x84], 2
call fcn.00590f4e
pop ecx
mov ebx, eax
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
call fcn.00591b0f
lea eax, [esp + 0x58]
mov ecx, ebx
push eax
call fcn.00590acc
mov ecx, ebx
mov byte [esp + 0x80], 3
call fcn.00590ac7
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x20]
mov byte [esp + 0x38], al
cmp ebx, dword [esp + 0x18]
jne 0x58fb22
mov eax, dword [ebp + 0x24]
push eax
push ecx
lea ebx, [ecx + eax]
lea ecx, [esp + 0x4c]
call fcn.00590a3f
jmp 0x58fb7d
mov esi, dword [ebp + 0x24]
push dword [ebp + 0x2c]
push ecx
lea eax, [ebx + esi]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], eax
call fcn.00590a3f
push dword [esp + 0x20]
lea eax, [ebx + 1]
push dword [ebp + 0x28]
lea ecx, [esp + 0x48]
push eax
call fcn.00590a3f
mov ecx, dword [esp + 0x28]
call fcn.00590a3a
push dword [esp + 0x10]
lea ecx, [esp + 0x44]
mov bl, al
call fcn.0058b5f9
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push esi
push dword [esp + 0x18]
mov byte [eax], bl
call fcn.00590a3f
mov ebx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x5c]
call fcn.0058b5f9
mov esi, eax
jmp 0x58fbb6
test al, al
jle 0x58fbbc
movsx ecx, al
mov eax, ebx
sub eax, edi
cmp ecx, eax
jae 0x58fbbc
push dword [esp + 0x34]
sub ebx, ecx
lea ecx, [esp + 0x44]
push 1
push ebx
call fcn.00590a3f
lea eax, [esi + 1]
cmp byte [eax], 0
cmovg esi, eax
mov al, byte [esi]
cmp al, 0x7f
jne 0x58fb8c
lea ecx, [esp + 0x40]
call fcn.00583f17
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x34], esi
call fcn.00590b88
mov ebx, eax
test edx, edx
jl 0x58fbe8
jg 0x58fbe0
test ebx, ebx
je 0x58fbe8
cmp ebx, esi
jbe 0x58fbe8
sub ebx, esi
jmp 0x58fbea
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
call fcn.00591b96
and eax, 0x1c0
cmp eax, 0x40
je 0x58fc8d
cmp eax, 0x100
je 0x58fc44
push ebx
push dword [ebp + 0x1c]
lea eax, [esp + 0x30]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0059011f
add esp, 0x18
lea ecx, [esp + 0x40]
mov esi, eax
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 4]
push ebx
mov dword [ebp + 0x14], eax
call fcn.0058b5f9
push eax
push dword [esi + 4]
push dword [esi]
jmp 0x58fca0
push edi
push 0
lea ecx, [esp + 0x48]
call fcn.0058b5f9
mov esi, dword [ebp + 8]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x34]
push dword [ebp + 0x10]
push eax
push esi
call fcn.005900e3
mov ecx, eax
push ebx
push dword [ebp + 0x1c]
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x48]
push dword [ecx + 4]
push dword [ecx]
push eax
push esi
call fcn.0059011f
add esp, 0x30
xor ebx, ebx
jmp 0x58fcb0
push edi
push 0
lea ecx, [esp + 0x48]
call fcn.0058b5f9
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [esp + 0x38]
push eax
push dword [ebp + 8]
call fcn.005900e3
add esp, 0x18
mov esi, dword [eax]
lea ecx, [esp + 0x40]
mov dword [ebp + 0x10], esi
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x34]
sub eax, edi
push eax
push edi
call fcn.0058b5f9
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x40]
push esi
push eax
push dword [ebp + 8]
call fcn.005900e3
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov edi, dword [eax]
push 0
mov dword [ebp + 0x10], edi
mov esi, dword [eax + 4]
push 0
mov dword [ebp + 0x14], esi
call fcn.00590b6d
push ebx
push dword [ebp + 0x1c]
push esi
mov esi, dword [esp + 0x48]
push edi
push esi
push dword [ebp + 8]
call fcn.0059011f
add esp, 0x18
lea ecx, [esp + 0x58]
call fcn.0058aa2f
lea ecx, [esp + 0x40]
call fcn.0058aa2f
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005faabc
mov esp, ebp
pop ebp
ret