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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x40
push dword [ebp + 0xc]
call fcn.00403057
pop ecx
test eax, eax
pop ecx
je 0x40303d
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
je 0x402e24
push 0xc1
call dword [fcn.004080a8]
jmp 0x40303d
mov eax, dword [esi + 0x3c]
add eax, 0xf8
push eax
push dword [ebp + 0xc]
call fcn.00403057
pop ecx
test eax, eax
pop ecx
je 0x40303d
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x402e14
cmp word [edi + 4], 0x14c
jne 0x402e14
mov ebx, dword [edi + 0x38]
test bl, 1
jne 0x402e14
movzx eax, word [edi + 0x14]
movzx edx, word [edi + 6]
test edx, edx
lea eax, [eax + edi + 0x18]
jbe 0x402e8c
lea ecx, [eax + 0xc]
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
test esi, esi
jne 0x402e7c
add eax, ebx
jmp 0x402e7e
add eax, esi
cmp eax, dword [ebp - 4]
jbe 0x402e86
mov dword [ebp - 4], eax
add ecx, 0x28
dec edx
jne 0x402e6f
push 0x40ebe8
call dword [fcn.004080a4]
test eax, eax
je 0x40303d
push 0
push 0x40f55c
push eax
call dword [ebp + 0x1c]
add esp, 0xc
test eax, eax
je 0x40303d
lea ecx, [ebp - 0x28]
push ecx
call eax
mov eax, dword [ebp - 0x24]
mov edx, dword [edi + 0x50]
lea esi, [edx + eax - 1]
mov edx, dword [ebp - 4]
lea ecx, [eax - 1]
not ecx
lea eax, [eax + edx - 1]
and esi, ecx
and eax, ecx
cmp esi, eax
jne 0x402e14
push dword [ebp + 0x24]
push 4
push 0x3000
push esi
push dword [edi + 0x34]
call dword [ebp + 0x10]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x402f0f
push dword [ebp + 0x24]
push 4
push 0x3000
push esi
push eax
call dword [ebp + 0x10]
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x402f36
push 0x3c
push 8
call dword [0x4080a0]
push eax
call dword [0x40809c]
mov esi, eax
test esi, esi
jne 0x402f3d
push dword [ebp + 0x24]
push 0x8000
push eax
push ebx
call dword [ebp + 0x14]
add esp, 0x10
push 0xe
jmp 0x402e19
mov dword [esi + 4], ebx
mov ax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x38], eax
push dword [edi + 0x54]
push dword [ebp + 0xc]
call fcn.00403057
pop ecx
test eax, eax
pop ecx
je 0x403036
push dword [ebp + 0x24]
push 4
push 0x1000
push dword [edi + 0x54]
push ebx
call dword [ebp + 0x10]
push dword [edi + 0x54]
mov dword [ebp + 0x24], eax
push dword [ebp + 8]
push eax
call fcn.00408306
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
push esi
push edi
mov eax, dword [ecx + 0x3c]
push dword [ebp + 0xc]
add eax, edx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00403070
add esp, 0x30
test eax, eax
je 0x403036
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [edi + 0x34]
je 0x402fe9
push eax
push esi
call fcn.00403358
pop ecx
mov dword [esi + 0x18], eax
pop ecx
push 1
pop edi
jmp 0x402fef
push 1
pop edi
mov dword [esi + 0x18], edi
push esi
call fcn.004033df
test eax, eax
pop ecx
je 0x403036
push esi
call fcn.0040314b
test eax, eax
pop ecx
je 0x403036
push esi
call fcn.0040331d
test eax, eax
pop ecx
je 0x403036
mov eax, dword [esi]
xor ecx, ecx
mov eax, dword [eax + 0x28]
cmp eax, ecx
je 0x40304d
cmp dword [esi + 0x14], ecx
je 0x403046
push ecx
push edi
add eax, ebx
push ebx
call eax
test eax, eax
jne 0x403041
push 0x45a
call dword [fcn.004080a8]
push esi
call fcn.004035cc
pop ecx
xor eax, eax
jmp 0x403052
mov dword [esi + 0x10], edi
jmp 0x403050
add eax, ebx
mov dword [esi + 0x34], eax
jmp 0x403050
mov dword [esi + 0x34], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret