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

Disassembly:
mov ebp, eax
cmp ebp, 0xff000000
jne 0x58e249
mov edx, dword [esp + 0x14]
mov ebp, dword [edx + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jne 0x58e282
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00588718
cmp dword [esp + 0xe8], eax
jl 0x58e278
mov ecx, esi
call fcn.00588728
cmp dword [esp + 0xec], eax
jge 0x58e282
push 0xf
call dword [0x5de6f8]
jmp 0x58e284
mov eax, ebp
push eax
lea ecx, [esp + 0x88]
call 0x69fbb2
mov al, byte [esp + 0xf0]
mov esi, dword [esp + 0xdc]
test al, 0x20
mov byte [esp + 0xd4], 1
je 0x58e30b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
dec esp
and al, 0x2c
mov edx, dword [esp + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], edx
test eax, eax
mov dword [esp + 0x58], ecx
je 0x58e2e7
push eax
lea edx, [esp + 0x50]
lea eax, [esp + 0x50]
push edx
push eax
call dword [0x5de6d4]
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0x84]
mov edx, dword [esi + 4]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x4c]
push eax
push ecx
push edx
call dword [0x5de710]
test byte [esp + 0xf0], 1
je 0x58e98d
lea ecx, [esp + 0x90]
call fcn.0058a458
test eax, eax
jne 0x58e5f4
mov eax, dword [esp + 0x44]
test ah, 7
je 0x58e445
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, dword [eax + 0x3c]
push ecx
mov ecx, dword [eax + 0x6c]
cmp ecx, 2
lea ecx, [esp + 0x50]
setne dl
dec edx
and edx, 3
push edx
push 0
call 0x69fb62
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
mov byte [esp + 0xd8], 2
call 0x69f149
mov ebp, dword [esp + 0xe0]
push ebx
lea ecx, [esp + 0x40]
push ebp
push ecx
mov ecx, esi
mov dword [esp + 0x24], eax
call 0x69f63a
mov eax, dword [esp + 0x44]
test ah, 1
je 0x58e3a0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add edx, ebx
push edx
jmp 0x58e414
mov eax, dword [esp + 0x44]
test ah, 4
je 0x58e3dc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add ecx, ebx
add edx, ebp
push ecx
push edx
mov ecx, esi
call 0x69f686
mov eax, dword [esp + 0x20]
push ebx
add eax, ebp
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, esi
call 0x69f63a
mov edx, dword [esp + 0x24]
add edx, ebx
push edx
push ebp
jmp 0x58e417
mov eax, dword [esp + 0x24]
mov ecx, esi
cdq
sub eax, edx
sar eax, 1
add eax, ebx
push eax
mov eax, dword [esp + 0x24]
add eax, ebp
push eax
call 0x69f686
push ebx
lea ecx, [esp + 0x40]
push ebp
push ecx
mov ecx, esi
call 0x69f63a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add edx, ebx
push edx
cdq
sub eax, edx
sar eax, 1
add eax, ebp
push eax
mov ecx, esi
call 0x69f686
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
call 0x69f149
mov dword [esp + 0x4c], 0xc53870
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd4], 3
call 0x69fb4c
jmp 0x58e44c
mov ebp, dword [esp + 0xe0]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
neg eax
push eax
push eax
push ecx
call dword [0x5de6cc]
mov edx, dword [0xc7bf40]
adc eax, 0xc7bf40
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x90]
push eax
mov byte [esp + 0xd8], 4
call fcn.0058a578
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x58e5de
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0xc558ec
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push 0
lea eax, [esp + 0x94]
push edx
push eax
mov byte [esp + 0xe0], 5
call fcn.0058df68
mov edx, dword [esi]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call dword [edx + 0x28]
cmp edi, 2
mov dword [esp + 0x18], eax
mov ebp, 0x800
je 0x58e4fb
cmp edi, 5
je 0x58e4fb
cmp edi, 8
je 0x58e4fb
cmp edi, 3
je 0x58e4f4
cmp edi, 6
je 0x58e4f4
cmp edi, 9
jne 0x58e500
mov ebp, 0x802
jmp 0x58e500
mov ebp, 0x801
cmp edi, 4
je 0x58e523
cmp edi, 5
je 0x58e523
cmp edi, 6
je 0x58e523
cmp edi, 7
je 0x58e51e
cmp edi, 8
je 0x58e51e
cmp edi, 9
jne 0x58e526
or ebp, 8
jmp 0x58e526
or ebp, 4
push 0xd
lea ecx, [esp + 0x14]
call 0x69921f
cmp eax, 0xffffffff
jne 0x58e565
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [0x5de0f4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
sub ecx, edx
cmp eax, ecx
jge 0x58e565
or ebp, 0x20
jmp 0x58e568
or ebp, 0x10
mov eax, dword [esp + 0x14]
test byte [eax + 0x44], 8
je 0x58e57f
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x58e57f
or ebp, 0x100
mov edi, dword [esi]
lea ecx, [esp + 0x90]