Function at 0x58bc71
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
test byte [edi + 8], 0x10
je 0x58bc90
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x58befb
call fcn.0058c1ef
test eax, eax
je 0x58bef2
mov ecx, dword [edi]
mov eax, 0x1000
mov esi, dword [ecx + 0x3c]
add esi, ecx
test word [esi + 0x16], ax
jne 0x58bef2
mov ebx, dword [esi + 0x3c]
lea ecx, [esp + 0x24]
mov edx, ebx
call fcn.0058b735
cmp dword [eax], 0
jne 0x58bef2
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x24]
call fcn.0058b735
cmp dword [eax], 0
jne 0x58bef2
push 0x200
mov edx, ebx
lea ecx, [esp + 0x28]
call fcn.0058b719
cmp dword [eax], 0
jne 0x58bef2
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x24]
push ebx
call fcn.0058b719
cmp dword [eax], 0
jne 0x58bef2
push 0x1000
lea ecx, [esp + 0x28]
call fcn.0058b719
cmp dword [eax], 0
jne 0x58bef2
push edx
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x28]
call fcn.0058b719
cmp dword [eax], 0
jne 0x58bef2
mov edx, dword [esi + 0x54]
lea ecx, [esp + 0x24]
push ebx
call fcn.0058b719
xor ebx, ebx
cmp dword [eax], ebx
jne 0x58bef2
mov eax, 0x10b
cmp word [esi + 0x18], ax
jne 0x58bd8d
movzx eax, word [esi + 0x34]
test eax, eax
jne 0x58bef2
mov eax, dword [esi + 0x64]
cmp eax, dword [esi + 0x60]
ja 0x58bef2
mov eax, dword [esi + 0x6c]
cmp eax, dword [esi + 0x68]
ja 0x58bef2
lea ecx, [esi + 0xe8]
mov dword [esp + 0x18], ecx
jmp 0x58bdd7
movzx eax, word [esi + 0x30]
test eax, eax
jne 0x58bef2
mov eax, dword [esi + 0x6c]
cmp eax, dword [esi + 0x64]
ja 0x58bef2
jb 0x58bdb3
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x60]
ja 0x58bef2
mov eax, dword [esi + 0x7c]
cmp eax, dword [esi + 0x74]
ja 0x58bef2
jb 0x58bdcd
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x70]
ja 0x58bef2
lea eax, [esi + 0xf8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
and eax, 1
mov dword [esp + 0x1c], eax
je 0x58bdef
test dword [edi], 0xfff
jne 0x58bef2
push edx
push ebx
push ebx
push edx
push ebx
push ebx
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.0058bff1
cmp dword [eax], ebx
jne 0x58bef2
mov edx, dword [esi + 0x54]
mov ecx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
movzx eax, word [esi + 0x14]
lea ebx, [esi + 0x18]
add ebx, eax
movzx eax, word [esi + 6]
imul eax, eax, 0x28
add eax, ebx
mov dword [esp + 0x20], eax
cmp eax, ebx
jb 0x58bef2
jbe 0x58bec9
cmp dword [esp + 0x1c], 0
jne 0x58be5e
push ecx
push ebx
push dword [esi + 0x54]
mov edx, esi
lea ecx, [esp + 0x34]
call fcn.0058b79c
cmp dword [eax], 0
jne 0x58bef2
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x24]
test eax, 0x1ffff1f
jne 0x58bef2
and eax, 0x80000020
cmp eax, 0x80000020
je 0x58bef2
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 8]
push edx
push eax
push dword [ebx + 0xc]
lea eax, [esp + 0x40]
push ecx
push eax
mov ecx, edi
call fcn.0058bff1
cmp dword [eax], 0
jne 0x58bef2
mov ecx, dword [ebx + 8]
mov eax, dword [esi + 0x38]
dec ecx
mov edx, dword [ebx + 0x14]
add ecx, eax
add edx, dword [ebx + 0x10]
neg eax
and ecx, eax
mov dword [esp + 0x10], edx
add ecx, dword [ebx + 0xc]
add ebx, 0x28
mov dword [esp + 0x14], ecx
cmp ebx, dword [esp + 0x20]
jb 0x58be3a
mov eax, dword [esp + 0x18]
xor ebx, ebx
push 1
push ebx
mov ecx, edi
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x3c]
push eax
call fcn.0058bf49
cmp dword [eax], ebx
jne 0x58bef2
mov eax, dword [ebp + 8]
or dword [edi + 8], 0x10
mov dword [eax], ebx
jmp 0x58befb
mov eax, dword [ebp + 8]
mov dword [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4