Function at 0x401359
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
cmp dword [0x409014], 0x3ef91eae
jne 0x40138b
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.004040e3
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403bd4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x1c]
cmp dword [0x409008], 0x3ef91eae
jne 0x4013c1
mov dword [esp], 0x549e8a51
call fcn.00402deb
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004021ac
test eax, eax
je 0x4013fe
mov dword [esp + 8], 8
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004039ee
test eax, eax
je 0x4013fe
cmp dword [ebp - 0x18], 0x554a4f58
jne 0x4013fe
cmp dword [ebp - 0x14], 0x4a4e414d
je 0x401471
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [ecx + 8]
add eax, dword [edx + 0x3c]
movzx edx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
movzx eax, word [eax + 6]
lea eax, [eax + eax*4]
mov ecx, dword [edx + eax*8 - 0x14]
mov ebx, ecx
add ebx, dword [edx + eax*8 - 0x18]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004021ac
test eax, eax
je 0x401470
mov dword [esp + 8], 8
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004039ee
test eax, eax
je 0x401470
cmp dword [ebp - 0x18], 0x554a4f58
jne 0x401470
cmp dword [ebp - 0x14], 0x4a4e414d
je 0x401471
int3
mov dword [ebp - 0x1c], 0x1ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 8]
mov dword [esp + 4], esi
mov dword [esp], 0x1ec
call fcn.004030f2
mov dword [ebx + 0x24], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0040256e
mov eax, dword [ebp - 0x24]
add eax, 0x170
mov dword [esp + 4], eax
lea ebx, [esi + 0x18]
mov dword [esp], ebx
call fcn.00401aec
mov dword [esp + 8], 0x2e
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403ac8
mov dword [esp + 8], 0xd
mov eax, dword [ebp - 0x24]
add eax, 0x180
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403ac8
cmp dword [esi + 0x14], 0
je 0x40150a
mov edx, dword [ebp - 0x24]
or dword [edx + 4], 0x3000
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x1e8], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [edx + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004021ac
mov dword [esp + 8], 4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0040256e
cmp dword [ebp - 0x1c], 0
je 0x4015e1
cmp dword [0x409014], 0x30595512
jne 0x40155e
call fcn.00406014
cmp dword [0x409008], 0x6a53de6b
jne 0x401572
mov dword [esp], edi
call fcn.00402314
mov dword [esp + 8], 4
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0040256e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edi, eax
add edi, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00403f49
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040256e
mov dword [esp + 8], 4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0040256e
cmp dword [ebp - 0x1c], 0
jne 0x40154d
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
jns 0x401697
cmp dword [0x409010], 0x631cb812
jne 0x401606
mov dword [esp], 0x82acf9e
call fcn.0040286e
mov dword [esp + 4], str.2P_G_aSZ
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [esp], eax
call fcn.00401330
cmp dword [0x409010], 0x17a90948
jne 0x401633
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00404974
mov edx, dword [ebp + 8]
mov word [edx], 0x18
mov eax, dword [edx + 4]
mov dword [esp], eax
call dword [esi + pe_nt_image_headers32]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x401665
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
call dword [esi + 0x70]
sub esp, 8
mov dword [esp + 4], 0x40c026
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [esp], eax
call fcn.00402ead
mov dword [esp + 8], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00402594
jmp 0x4016b0
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.00402632
add eax, dword [eax + 0x24]
test eax, eax
je 0x4016c7
mov dword [esp + 8], esi
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004032a7
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
call dword [esi + 0x70]
sub esp, 8
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret