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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411200
push 0x40fc8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x398
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x380], 0
and dword [ebp - 0x384], 0
and dword [ebp - 0x3a8], 0
and dword [ebp - 0x308], 0
and dword [ebp - 0x3a4], 0
and dword [ebp - 0x310], 0
or dword [ebp - 0x388], 0xffffffff
and dword [ebp - 0x30c], 0
and dword [ebp - 0x3ac], 0
and dword [ebp - 0x304], 0
and dword [ebp - 0x354], 0
cmp dword [0x4169dc], 0
jne 0x41216e
call fcn.00411f65
and dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.00412039
cmp eax, 1
jne 0x412184
jmp 0x4128ab
push 0x80
push dword [ebp + 8]
call dword [0x4100b0]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [fcn.00410108]
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0xffffffff
jne 0x4121c1
jmp 0x4128ab
push 0
lea eax, [ebp - 0x3a0]
push eax
push dword [ebp - 0x388]
call fcn.0040a496
push 2
push 0
push 0
push dword [ebp - 0x388]
call dword [fcn.00410110]
mov dword [ebp - 0x308], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 0x388]
call dword [0x4100b8]
mov dword [ebp - 0x30c], eax
push 0x400
push 0
push 0
push 0xf001f
push dword [ebp - 0x30c]
call dword [0x4100c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
je 0x412242
mov eax, dword [ebp - 0x380]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x412247
jmp 0x4128ab
mov eax, dword [ebp - 0x380]
mov ecx, dword [ebp - 0x380]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x3ac], ecx
mov eax, dword [ebp - 0x3ac]
add eax, 0xf8
mov ecx, dword [ebp - 0x380]
add ecx, 0x400
cmp eax, ecx
ja 0x412287
mov eax, dword [ebp - 0x3ac]
movzx eax, word [eax]
cmp eax, 0x4550
je 0x41228c
jmp 0x4128ab
mov eax, dword [ebp - 0x3ac]
cmp dword [eax + 0x98], 0
je 0x4122a0
jmp 0x4128ab
push 2
push dword [ebp - 0x308]
push dword [ebp - 0x3ac]
call fcn.00411d3a
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x304]
add eax, dword [ecx + 0x10]
cmp dword [ebp - 0x308], eax
jbe 0x4122d8
jmp 0x4128ab
push 0
push dword [ebp - 0x308]
push dword [ebp - 0x3ac]
call fcn.00411d3a
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
add eax, 0x28
mov ecx, dword [ebp - 0x380]
add ecx, 0x400
cmp eax, ecx
jbe 0x41230f
jmp 0x4128ab
mov eax, dword [ebp - 0x304]
cmp dword [eax + 0x24], 0xe0000020
jne 0x41242e
push 4
push dword [ebp - 0x304]
call fcn.0040acb2
cmp eax, 1
jne 0x41242e
mov eax, dword [ebp - 0x304]
movzx eax, word [eax + 4]
mov ecx, dword [0x415930]
movzx ecx, word [ecx]
cmp eax, ecx
jl 0x412359
jmp 0x4128ab
mov dword [ebp - 0x3a8], 1
mov eax, dword [ebp - 0x3ac]
mov ax, word [eax + 6]
sub ax, 1
mov ecx, dword [ebp - 0x3ac]
mov word [ecx + 6], ax
mov eax, dword [ebp - 0x3ac]
cmp dword [eax + 0x1c], 0
je 0x4123a2
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 0x304]
mov eax, dword [eax + 0x1c]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x3ac]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 0x304]
mov ecx, dword [ecx]
mov dword [eax + 0x28], ecx
push 5
push dword [ebp - 0x3ac]
call fcn.0040acb2
mov ecx, dword [ebp - 0x3ac]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x304]
cmp dword [eax + 8], 0
jne 0x412402
mov eax, dword [ebp - 0x3ac]
push dword [eax + 0x38]
mov eax, dword [ebp - 0x304]
push dword [eax + 0x10]
call fcn.00411d02
mov ecx, dword [ebp - 0x3ac]
mov ecx, dword [ecx + 0x50]
sub ecx, eax
mov eax, dword [ebp - 0x3ac]
mov dword [eax + 0x50], ecx
jmp 0x41241d
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 0x304]
mov eax, dword [eax + 0x50]
sub eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x3ac]
mov dword [ecx + 0x50], eax
push 0x400
push dword [ebp - 0x380]
call dword [0x4100b4]
mov eax, dword [ebp - 0x3ac]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x3a4], eax
mov eax, dword [ebp - 0x3ac]
movzx eax, word [eax + 6]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x3ac]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x354]
add eax, 0x28
mov ecx, dword [ebp - 0x380]
add ecx, 0x400
cmp eax, ecx
jbe 0x41247b
jmp 0x4128ab
cmp dword [ebp - 0x3a8], 0
jne 0x4124d0
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x384], eax
and dword [ebp - 0x3b0], 0
jmp 0x4124a6
mov eax, dword [ebp - 0x3b0]
inc eax
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3b0], 0xa
jae 0x4124d0
mov eax, dword [ebp - 0x384]
cmp dword [eax], 0
je 0x4124bf
jmp 0x4128ab
mov eax, dword [ebp - 0x384]
add eax, 4
mov dword [ebp - 0x384], eax
jmp 0x412499
push 5
push dword [ebp - 0x3ac]
call fcn.0040acb2
mov ecx, dword [ebp - 0x354]
mov dword [ecx], eax
mov eax, dword [ebp - 0x354]
mov ecx, dword [0x415930]
mov cx, word [ecx]
mov word [eax + 4], cx
push 3
push dword [ebp - 0x354]
call fcn.0040acb2
mov eax, dword [ebp - 0x3ac]
push dword [eax + 0x38]
mov eax, dword [0x413aec]
add eax, dword [0x4169a8]
push eax
call fcn.00411d02
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x3ac]
push dword [eax + 0x3c]
mov eax, dword [0x413aec]
add eax, dword [0x4169a8]
push eax
call fcn.00411d02
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x354]
mov dword [eax + 0x24], 0xe0000020
push 1
push dword [ebp - 0x308]
push dword [ebp - 0x3ac]
call fcn.00411d3a
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x3ac]
invalid
push dword [eax + 0x38]
mov eax, dword [ebp - 0x304]
push dword [eax + 8]
call fcn.00411d02
mov ecx, dword [ebp - 0x304]
add eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x304]
cmp dword [eax + 8], 0
add byte [ebp + 0x33], dh
mov eax, dword [ebp - 0x3ac]
push dword [eax + 0x38]
mov eax, dword [ebp - 0x304]
push dword [eax + 0x10]
call fcn.00411d02
mov ecx, dword [ebp - 0x304]
add eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x354]
and dword [eax + 8], 0
push 2
push dword [ebp - 0x308]
invalid
mov ch, 0x54