Function at 0x1020f700
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
and edx, 3
je 0x1020f71e
xor eax, eax
jmp 0x1020fae4
mov eax, dword fs:[0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 8]
jb 0x1020f744
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 4]
jae 0x1020f744
xor eax, eax
jmp 0x1020fae4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0xffffffff
jne 0x1020f757
mov eax, 1
jmp 0x1020fae4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
jmp 0x1020f770
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
ja 0x1020f7ba
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0xffffffff
je 0x1020f79f
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 8]
jb 0x1020f79f
xor eax, eax
jmp 0x1020fae4
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax + 4], 0
je 0x1020f7b8
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x1020f767
cmp dword [ebp - 0x1c], 0
je 0x1020f7e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax - 8]
cmp edx, dword [ecx + 8]
jb 0x1020f7d9
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
cmp ecx, dword [ebp + 8]
jb 0x1020f7e0
xor eax, eax
jmp 0x1020fae4
mov edx, dword [ebp - 0x20]
and edx, 0xfffff000
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0
jmp 0x1020f7fe
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x1027f098]
jge 0x1020f91e
mov edx, dword [ebp - 0x30]
mov eax, dword [edx*4 + 0x1027f0a0]
cmp eax, dword [ebp - 0x34]
jne 0x1020f919
cmp dword [ebp - 0x30], 0
jle 0x1020f90f
push 1
push 0x1027f0e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1020f90f
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx*4 + 0x1027f0a0]
cmp edx, dword [ebp - 0x34]
je 0x1020f8c6
mov eax, dword [0x1027f098]
sub eax, 1
mov dword [ebp - 0x30], eax
jmp 0x1020f864
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
jl 0x1020f87d
mov edx, dword [ebp - 0x30]
mov eax, dword [edx*4 + 0x1027f0a0]
cmp eax, dword [ebp - 0x34]
jne 0x1020f87b
jmp 0x1020f87d
jmp 0x1020f85b
cmp dword [ebp - 0x30], 0
jge 0x1020f8a9
cmp dword [0x1027f098], 0x10
jge 0x1020f89b
mov ecx, dword [0x1027f098]
add ecx, 1
mov dword [0x1027f098], ecx
mov edx, dword [0x1027f098]
sub edx, 1
mov dword [ebp - 0x30], edx
jmp 0x1020f8c6
cmp dword [ebp - 0x30], 0
jne 0x1020f8c6
push 0
push 0x1027f0e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
jmp 0x1020fae4
mov dword [ebp - 0x28], 0
jmp 0x1020f8d8
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x30]
jg 0x1020f902
mov edx, dword [ebp - 0x28]
mov eax, dword [edx*4 + 0x1027f0a0]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov dword [ecx*4 + 0x1027f0a0], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
jmp 0x1020f8cf
push 0
push 0x1027f0e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
jmp 0x1020fae4
jmp 0x1020f7f5
push 0x1c
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1020f93b
cmp dword [ebp - 0x3c], 0x1000000
je 0x1020f943
or eax, 0xffffffff
jmp 0x1020fae4
mov eax, dword [ebp - 0x40]
and eax, 0xcc
jne 0x1020f952
jmp 0x1020fa12
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1020f96d
or eax, 0xffffffff
jmp 0x1020fae4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x1020f98c
or eax, 0xffffffff
jmp 0x1020fae4
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
cmp eax, 0x10b
je 0x1020f9aa
or eax, 0xffffffff
jmp 0x1020fae4
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x2c], eax
jae 0x1020fa0a
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0xc]
jb 0x1020fa08
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x38]
add ecx, dword [edx + 8]
cmp dword [ebp - 4], ecx
jae 0x1020fa08
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
je 0x1020fa08
xor eax, eax
jmp 0x1020fae4
jmp 0x1020fa12
or eax, 0xffffffff
jmp 0x1020fae4
push 1
push 0x1027f0e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x1020fa2d
mov eax, 1
jmp 0x1020fae4
mov edx, dword [0x1027f098]
mov dword [ebp - 0x30], edx
jmp 0x1020fa41
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jle 0x1020fa5a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx*4 + 0x1027f09c]
cmp edx, dword [ebp - 0x34]
jne 0x1020fa58
jmp 0x1020fa5a
jmp 0x1020fa38
cmp dword [ebp - 0x30], 0
jne 0x1020fad2
cmp dword [0x1027f098], 0xf
jle 0x1020fa72
mov dword [ebp - 0x5c], 0xf
jmp 0x1020fa7a
mov eax, dword [0x1027f098]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], 0
jmp 0x1020fa92
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jg 0x1020fabc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx*4 + 0x1027f0a0]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov dword [eax*4 + 0x1027f0a0], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
jmp 0x1020fa89
cmp dword [0x1027f098], 0x10
jge 0x1020fad2
mov eax, dword [0x1027f098]
add eax, 1
mov dword [0x1027f098], eax
push 0
push 0x1027f0e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
mov esp, ebp
pop ebp
ret