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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x70]
mov eax, dword [eax]
mov ecx, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x50], eax
lea eax, [ebx + 6]
push esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x90], eax
cmp byte [ecx], 0x85
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0xfffffffe
mov dword [esp + 0x28], 0xfffffffe
jne 0x58a31f
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 4]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x50], eax
xor eax, eax
mov word [esp + 0x56], ax
lea eax, [esp + 0x50]
mov dword [esp + 0x44], edx
mov word [esp + 0x54], dx
mov dword [ebp + 0x24], eax
add ebx, 3
mov word [ecx + 1], 0
mov eax, dword [ebp + 0x40]
add ebx, ecx
xor edx, edx
mov dword [esp + 0x34], eax
cmp dword [esp + 0x9c], edx
mov edi, ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x48], eax
cmove ecx, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], ecx
cmp dword [esp + 0x78], 0
mov dword [esp + 0x98], ebx
je 0x58a363
mov dword [ebp + 0x40], eax
cmp dword [esp + 0x74], 0
je 0x58a38b
lea esi, [ebx + 1]
mov byte [ebx], 0x7c
lea eax, [esi + 2]
mov word [esi], 0
add dword [esp + 0x94], 3
mov dword [esp + 0x40], esi
mov dword [esp + 0x98], eax
push ecx
push ebp
push dword [esp + 0x88]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x90]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00585ed0
add esp, 0x30
test eax, eax
je 0x58a59c
mov eax, dword [ebp + 0x40]
cmp eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x98]
cmovbe eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x58a509
cmp byte [edi], 0x77
je 0x58a429
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jmp 0x58a4b3
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
test ecx, ecx
js 0x58a46a
cmp ecx, edx
jne 0x58a443
cmp dword [esp + 0x24], esi
je 0x58a482
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x28], 0xffffffff
cmovns ecx, eax
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x24]
cmovge eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
test edx, edx
js 0x58a482
mov ecx, dword [esp + 0x18]
test ecx, ecx
jns 0x58a486
mov ecx, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], ecx
jmp 0x58a486
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, ecx
xor eax, edx
test eax, 0xfffffffd
jne 0x58a4ab
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x14], eax
jne 0x58a4ab
or edx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jmp 0x58a4b3
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x74], 0
je 0x58a502
mov eax, dword [esp + 0x64]
push ebp
shr eax, 0xb
push 0
and eax, 1
mov byte [ebx], 0
push eax
push edi
call fcn.0058ad90
mov ecx, eax
add esp, 0x10
cmp ecx, 0xfffffffd
jne 0x58a4e4
mov dword [ebp + 0x74], 1
jmp 0x58a502
test ecx, ecx
js 0x58a57c
cmp ecx, dword [ebp + 0x48]
jle 0x58a4f4
mov dword [ebp + 0x48], ecx
mov edx, dword [esp + 0x40]
mov eax, ecx
sar eax, 8
mov byte [edx], al
mov byte [edx + 1], cl
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0x7c
jne 0x58a5b0
test eax, eax
je 0x58a543
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x7c]
add dword [esp + 0x94], 3
add ebx, 3
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax]
add ebx, eax
mov eax, dword [esp + 0x48]
inc esi
mov dword [esp + 0x1c], esi
jmp 0x58a352
mov ecx, dword [esp + 0x20]
mov eax, ebx
sub eax, ecx
mov byte [ebx], 0x77
sar eax, 8
mov byte [ebx + 1], al
mov al, bl
sub al, cl
mov dword [esp + 0x20], ebx
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov byte [ebx + 2], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], ebx
add ebx, 3
inc esi
mov dword [esp + 0x1c], esi
jmp 0x58a352
cmp ecx, 0xfffffffe
jne 0x58a586
lea eax, [ecx + 0x26]
jmp 0x58a596
cmp ecx, 0xfffffffc
mov eax, 0x19
mov edx, 0x46
cmove eax, edx
mov ecx, dword [esp + 0x70]
mov dword [ecx], eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x50
ret
test eax, eax
jne 0x58a5e7
mov edx, ebx
mov ebx, dword [esp + 0x20]
sub edx, ebx
nop dword [eax]
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
mov byte [ebx + 2], dl
mov eax, edx
mov edx, ecx
sar eax, 8
mov byte [ebx + 1], al
sub ebx, edx
test ecx, ecx
jne 0x58a5c0
mov ebx, dword [esp + 0x98]
mov ecx, dword [esp + 0x30]
mov eax, ebx
sub eax, ecx
mov byte [ebx], 0x78
sar eax, 8
mov byte [ebx + 1], al
mov al, bl
sub al, cl
mov byte [ebx + 2], al
add ebx, 3
cmp dword [esp + 0x44], 0
jbe 0x58a677
mov eax, dword [ebp + 0x24]
cmp word [eax + 6], 0
je 0x58a669
mov eax, ebx
sub eax, ecx
push eax
push ecx
lea eax, [ecx + 3]
push eax
call fcn.0058ca30
mov eax, dword [esp + 0x3c]
lea edx, [ebx + 3]
mov ebx, eax
mov ecx, edx
sub ecx, ebx
add esp, 0xc
sar ecx, 8
mov byte [eax], 0x81
mov al, dl
mov byte [ebx + 1], cl
sub al, bl
mov byte [ebx + 2], al
lea ebx, [edx + 3]
mov byte [edx], 0x78
mov byte [edx + 1], cl
mov byte [edx + 2], al
mov ecx, dword [esp + 0x94]
mov eax, dword [ebp + 0x24]
add ecx, 6
mov dword [esp + 0x94], ecx
mov eax, dword [eax]
mov dword [ebp + 0x24], eax
jmp 0x58a67e
mov eax, dword [eax]
mov ecx, dword [esp + 0x94]
mov dword [ebp + 0x24], eax
jmp 0x58a67e
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [eax], ebx
mov eax, dword [esp + 0x6c]
mov dword [eax], esi
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x9c]
mov dword [eax], edx
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x10]
mov dword [eax], edx
test esi, esi
je 0x58a6f6
mov edx, dword [esi]
mov eax, 0x7fffffeb
sub eax, edx
cmp eax, ecx
jge 0x58a6f1
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x50
ret
lea eax, [edx + ecx]
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret