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

Disassembly:
sub esp, 0x1d0
push ebx
push ebp
xor ebx, ebx
cmp dword [esp + 0x1dc], ebx
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [esp + 0x1f8]
push edi
mov dword [esp + 0x44], ecx
jne 0x586fc6
mov edi, 0xc0000005
jmp 0x58773f
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov edi, dword [esp + 0x38]
jne 0x586ff6
cmp edi, ebx
jne 0x586ff6
mov edi, 0xc000011e
jmp 0x58773f
mov ecx, dword [esp + 0x1f4]
mov ebp, dword [esp + 0x1f0]
and ecx, 8
cmp cl, 8
jne 0x58703e
cmp ebp, ebx
je 0x58703e
mov edx, dword [ebp + 4]
cmp edx, edi
jl 0x58703e
jg 0x587020
mov ecx, dword [ebp]
cmp ecx, eax
jbe 0x58703e
lea ecx, [esp + 0x1fc]
call fcn.005b1928
pop edi
pop esi
pop ebp
mov eax, 0xc0000040
pop ebx
add esp, 0x1d0
ret 0x20
lea edx, [esp + 0x68]
push 0x30
push edx
mov dword [esp + 0x24], ebx
call fcn.00577d48
mov eax, dword [esp + 0x200]
add esp, 8
test eax, 0x1000000
push ebx
je 0x5874f7
mov edx, dword [esi]
xor ecx, ecx
push ebx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
push 0x40
lea ecx, [esp + 0x1a8]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x5874ed
cmp dword [esp + 0x20], 0x40
jne 0x5874ed
cmp word [esp + 0x1a0], 0x5a4d
jne 0x5874ed
mov eax, dword [esp + 0x1dc]
mov edi, dword [esi]
push ebx
cdq
push ebx
push edx
push eax
mov eax, dword [edi + 0x30]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
push pe_nt_image_headers32
lea ecx, [esp + 0xb0]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x5874ed
cmp dword [esp + 0x20], 0xf8
jne 0x5874ed
mov ecx, dword [esp + 0xd0]
cmp ecx, ebx
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x14], eax
jne 0x587111
mov dword [esp + 0x68], ebx
jmp 0x587117
add ecx, eax
mov dword [esp + 0x68], ecx
movzx eax, word [esp + 0x106]
movzx ecx, word [esp + 0xac]
movzx edx, word [esp + 0x104]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x78], edx
mov dx, word [esp + 0xf0]
mov dword [esp + 0x74], eax
mov ax, word [esp + 0xf2]
mov dword [esp + 0x70], ecx
mov ecx, dword [edi]
mov dword [esp + 0x6c], ebx
mov word [esp + 0x7e], dx
mov word [esp + 0x7c], ax
cmp dword [ecx + 0x9c], ebx
je 0x5871c0
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
push 1
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0x18], 1
call edx
mov ecx, eax
call fcn.005b0858
mov ecx, dword [edi]
push eax
add ecx, 0xac
call fcn.005b0858
push eax
call dword [0x100c3918]
test eax, eax
jne 0x5871c0
lea edi, [eax + 1]
jmp 0x5871c2
xor edi, edi
test byte [esp + 0x10], 1
je 0x5871d2
lea ecx, [esp + 0x3c]
call fcn.005b0b78
mov eax, dword [esp + 0xf8]
lea ebp, [esp + 0xa0]
push ebp
mov dword [esp + 0x34], eax
mov edx, dword [esi]
xor ecx, ecx
push 2
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov edx, dword [esp + 0x30]
mov ecx, dword [0x100c3678]
push ebx
push 0x8000000
push 0x40
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x1f4]
lea eax, [esp + 0x48]
push eax
push ebx
or edx, 0xf
add ecx, 0x2e4
push edx
mov dword [esp + 0x58], ebx
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
cmp edi, ebx
mov dword [esp + 0x2c], ebx
je 0x587256
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0xb4]
cmp eax, ebx
je 0x587256
mov dword [esp + 0x14], eax
jmp 0x5872f0
mov ecx, dword [esp + 0x30]
mov edi, dword [0x100c3678]
mov ebp, dword [0x10082218]
push 0x40
push 0x100000
push 1
lea eax, [esp + 0x3c]
push eax
push ebx
push ecx
push ebx
lea edx, [esp + 0x30]
push edx
add edi, 0x3d4
call ebp
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
call eax
mov edi, eax
cmp edi, ebx
je 0x5872e8
cmp dword [esp + 0x14], ebx
je 0x5872e0
mov edx, dword [esp + 0x30]
mov edi, dword [0x100c3678]
push 0x40
push 0x100000
push 1
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
push ebx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebx
add edi, 0x3d4
call ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
push ecx
mov ecx, edi
call eax
call eax
mov edi, eax
cmp edi, ebx
jne 0x587736
mov dword [esp + 0x2c], 1
mov edx, dword [esi]
push ebx
xor ecx, ecx
push ebx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0xfc]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x3c]
movzx ecx, word [edi + eax + 0x14]
add edi, eax
cmp word [edi + 6], bx
lea ecx, [edi + ecx + 0x18]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], ebx
jbe 0x5874bf
lea ebx, [ecx + 0xc]
mov dword [esp + 0x10], ebx
jmp 0x58734d
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx - 4]
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x50], edx
mov edx, dword [edi + 0x38]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call fcn.0057f5a8
mov ebp, dword [ebx]
add ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
push eax
push ebp
mov dword [esp + 0x44], ebp
call fcn.00577d48
mov ecx, dword [esp + 0x38]
xor eax, eax
add esp, 0x20
cmp ecx, eax
jne 0x5873bb
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x98]
push ecx
push 1
mov ecx, eax
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x74], eax
call edx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x48], 0
je 0x5873e9
mov edx, dword [esi]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [edx + 0x30]
push ecx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
push ecx
push ebp
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x50]
sub eax, dword [ebx]
mov edx, dword [ebx + 8]
mov ebx, dword [esp + 0xa0]
add eax, edx
cmp eax, ebx
jae 0x587400
mov ebx, eax
cmp word [edi + 6], 0
mov dword [esp + 0x54], 0
jbe 0x587466
mov ebp, dword [esp + 0x58]
add ebp, 0x14
mov edi, edi
mov edx, dword [edi + 0x38]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [ebp - 4]
push edx
mov edx, dword [ebp]
push eax
push ecx
push edx
call fcn.0057f5a8
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
add esp, 0x18
cmp eax, ecx
jbe 0x58744c
cmp eax, ebx
jae 0x58744c
mov ebx, eax
mov eax, dword [esp + 0x54]
movzx edx, word [edi + 6]
add eax, 1
add ebp, 0x28
cmp eax, edx
mov dword [esp + 0x54], eax
jl 0x587418
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
add ecx, eax
cmp ebx, ecx
mov dword [esp + 0x24], ecx
jbe 0x58749d
mov edx, dword [esi]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [edx + 0x30]
push ecx
mov ecx, esi
call eax
sub ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x20]
push eax
add ebp, ecx
push ebx
push ebp
mov ecx, esi
call edx
mov eax, dword [esp + 0x50]
movzx ecx, word [edi + 6]
add dword [esp + 0x10], 0x28
add eax, 1
cmp eax, ecx
mov dword [esp + 0x50], eax
jl 0x587349
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
je 0x587687
mov edi, dword [0x100c3678]
push eax
add edi, 0x434
call dword [0x10082218]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
call eax
jmp 0x587687
mov edi, 0xc000012f
jmp 0x587736
mov ecx, dword [0x100c3678]
push eax
mov eax, dword [esp + 0x1f0]
push 0x40
lea edx, [esp + 0x40]
push edx
push ebx
or eax, 7
add ecx, 0x2e4
push eax
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
mov edi, eax
cmp edi, ebx
jne 0x587736
mov edx, dword [esi]
push ebx
xor ecx, ecx
push ebx
xor eax, eax
push ecx
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov eax, dword [esp + 0x38]
xor edx, edx
test eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
jl 0x587711
mov edi, dword [esp + 0x34]
jg 0x58756c
test edi, edi
jbe 0x58765b
jmp 0x58756c
mov edi, dword [esp + 0x34]
mov ebp, dword [0x100c3858]
mov ecx, edi
sub ecx, edx
sbb eax, ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], 0
jg 0x587592
jl 0x58758c
cmp ecx, ebp
jae 0x587592
sub edi, edx
mov eax, edi
jmp 0x587594
mov eax, ebp
mov edi, dword [0x100c3678]
mov ebx, dword [0x10082218]
push 4
push 0
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x30], eax
push 0
lea eax, [esp + 0x2c]
push eax
add edi, 0x3d4
call ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
push ecx
mov ecx, edi
call eax
call eax
mov edi, eax
test edi, edi
jne 0x587734
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x14]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x10]
mov edi, dword [0x100c3678]
push eax
add edi, 0x434
call ebx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
call eax
mov edi, eax
test edi, edi
jne 0x587734
mov edx, dword [esp + 0x24]
add edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
adc ebx, eax
mov eax, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
jl 0x587568
jg 0x58770a
mov edi, dword [esp + 0x34]
cmp edx, edi
jb 0x58756c
mov ebp, dword [esp + 0x1f0]
test ebp, ebp
je 0x587685
mov ecx, dword [ebp + 4]
cmp ecx, eax
mov edx, dword [ebp]
jl 0x587685
jg 0x58766f
cmp edx, edi
jbe 0x587685
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call edx
xor ebx, ebx
cmp dword [esp + 0x200], ebx
je 0x58771a
push ebx
push 1
push 1
push ebx
call dword [0x1008211c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1e8]
mov edi, eax
push esi
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x200]
push ecx
push edx
add edi, 0x6000000
push eax
lea ecx, [esp + 0x40]
and edi, 0xfffffffc
push ecx
mov dword [esp + 0x3c], edi
call fcn.005a1678
mov ecx, dword [esp + 0x5c]
add esp, 0x18
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
add ecx, 0x7c
call fcn.005b3d68
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov ecx, dword [esp + 0x1e4]
mov dword [ecx], edi
je 0x587730
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor edi, edi
jmp 0x587736
mov ebp, dword [esp + 0x1f0]
mov edi, dword [esp + 0x34]
jmp 0x58765b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0057f408
mov edx, dword [esp + 0x1e8]
add esp, 4
mov dword [edx], eax
xor edi, edi
jmp 0x587736
xor ebx, ebx
lea ecx, [esp + 0x1c]
call fcn.0057f4d8
cmp esi, ebx
je 0x58774b
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 0x20