Function at 0x450643
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
push 0x40
push dword [ebp + 0xc]
call fcn.0044fdfd
pop ecx
pop ecx
test eax, eax
jne 0x450668
xor eax, eax
jmp 0x450a3d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x45068d
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x450a3d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.0044fdfd
pop ecx
pop ecx
test eax, eax
jne 0x4506ae
xor eax, eax
jmp 0x450a3d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x4506d7
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x450a3d
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
je 0x4506f7
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x450a3d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
and eax, 1
je 0x450714
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x450a3d
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x34], eax
and dword [ebp - 0x18], 0
jmp 0x450744
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x18], eax
jae 0x450786
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
jne 0x450767
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
jmp 0x450776
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jbe 0x450784
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x450734
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x5c]
dec eax
not eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x50]
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx + edx - 1]
and ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x5c]
dec eax
not eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x20]
lea ecx, [edx + ecx - 1]
and ecx, eax
cmp dword [ebp - 0x24], ecx
je 0x4507d1
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x450a3d
push dword [ebp + 0x24]
push 4
push 0x3000
push dword [ebp - 0x24]
mov eax, dword [ebp - 8]
push dword [eax + 0x34]
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x450820
push dword [ebp + 0x24]
push 4
push 0x3000
push dword [ebp - 0x24]
push 0
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x450820
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x450a3d
push 0x40
push 8
call fcn.0040c64d
push eax
call fcn.0040e95c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45085d
push dword [ebp + 0x24]
push 0x8000
push 0
push dword [ebp - 0xc]
call dword [ebp + 0x14]
add esp, 0x10
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x450a3d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x16]
and eax, 0x2000
je 0x45087d
mov dword [ebp - 0x28], 1
jmp 0x450881
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
push dword [ebp + 0xc]
call fcn.0044fdfd
pop ecx
pop ecx
test eax, eax
jne 0x4508e7
jmp 0x450a32
push dword [ebp + 0x24]
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
push dword [ebp - 0xc]
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00647020
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x34], ecx
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044fe19
add esp, 0x10
test eax, eax
jne 0x450952
jmp 0x450a32
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x34]
sub eax, dword [ecx + 0x34]
mov dword [ebp - 0x30], eax
je 0x45097a
push dword [ebp - 0x30]
push dword [ebp - 4]
call fcn.004502bc
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
jmp 0x450984
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 1
push dword [ebp - 4]
call fcn.004503ab
pop ecx
test eax, eax
jne 0x45099b
jmp 0x450a32
push dword [ebp - 4]
call fcn.004500ed
pop ecx
test eax, eax
jne 0x4509b2
jmp 0x450a32
push dword [ebp - 4]
call fcn.0045024e
pop ecx
test eax, eax
jne 0x4509c3
jmp 0x450a32
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x450a26
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x450a13
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x38], ecx
push 0
push 1
push dword [ebp - 0xc]
call dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x450a07
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x450a32
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
jmp 0x450a24
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], ecx
jmp 0x450a2d
mov eax, dword [ebp - 4]
and dword [eax + 0x38], 0
mov eax, dword [ebp - 4]
jmp 0x450a3d
push dword [ebp - 4]
call fcn.00450c89
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret