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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x527040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x51c560
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
mov dword [ebp - 0xc], eax
cmp word [eax], cx
jne 0x402601
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x402600
push esi
push edi
movzx edi, word [ebx + 0x14]
xor eax, eax
add edi, 0x18
xor esi, esi
add edi, ebx
cmp ax, word [ebx + 6]
jae 0x4023ba
push 0x51c56c
push edi
call fcn.004a0cf0
add esp, 8
test eax, eax
jne 0x4023ae
test dword [edi + 0x24], 0x20000000
jne 0x4023ba
movzx eax, word [ebx + 6]
inc esi
add edi, 0x28
cmp esi, eax
jl 0x402393
mov esi, dword [edi + 0xc]
add esi, dword [ebp - 0xc]
mov eax, dword [0x52a1b8]
mov edi, dword [edi + 0x10]
cmp eax, 6
jne 0x402489
mov eax, dword [0x52a1c4]
cmp eax, 1
jne 0x402438
push 0xd
push edi
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x89044889
mov ecx, esi
mov dword [ebp - 0x10], 0x9090a301
mov dword [ebp - 0xc], 0x76ff9090
mov byte [ebp - 8], 0x20
call fcn.00401c70
add esp, 8
cmp eax, 0xffffffff
je 0x4025fe
mov ecx, dword [eax + esi + 0x11]
mov dword [0x52a1c8], ecx
mov ecx, dword [eax + esi + 0x16]
add eax, 0x1a
add eax, ecx
pop edi
add eax, esi
pop esi
mov dword [0x52a1c0], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450d40
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x4025fe
push 8
push edi
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x568bff33
mov ecx, esi
mov dword [ebp - 0xc], 0xe8cb8b20
call fcn.00401c70
add esp, 8
cmp eax, 0xffffffff
je 0x4025fe
mov ecx, dword [eax + esi + 8]
add eax, 0xc
add eax, ecx
pop edi
add eax, esi
pop esi
mov dword [0x52a1bc], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450d40
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x4025fe
cmp dword [0x52a1c4], 0
jne 0x4025fe
push 0xe
push edi
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0xfed4858b
mov ecx, esi
mov dword [ebp - 0x20], 0x708bffff
mov dword [ebp - 0x1c], 0x8bd68b50
mov word [ebp - 0x18], 0xe8cb
mov dword [ebp - 0x34], 0x8bf8458b
mov dword [ebp - 0x30], 0x50408bce
mov dword [ebp - 0x2c], 0x4589d08b
mov word [ebp - 0x28], 0xe8f0
mov dword [ebp - 0x48], 0xff90858b
mov dword [ebp - 0x44], 0x708bffff
mov dword [ebp - 0x40], 0x8bd68b50
mov dword [ebp - 0x3c], 0xffff908d
mov word [ebp - 0x38], 0xe8ff
mov dword [ebp - 0x14], 0x8bfc458b
mov dword [ebp - 0x10], 0x50708bcf
mov word [ebp - 0xc], 0xd68b
mov byte [ebp - 0xa], 0xe8
mov dword [ebp - 0x5c], 0xff14858b
mov dword [ebp - 0x58], 0x708bffff
mov dword [ebp - 0x54], 0x8bd68b50
mov dword [ebp - 0x50], 0xfffef88d
mov word [ebp - 0x4c], 0xe8ff
call fcn.00401c70
add esp, 8
cmp eax, 0xffffffff
jne 0x40255b
push 0xe
push edi
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00401c70
add esp, 8
cmp eax, 0xffffffff
je 0x40257c
mov ecx, dword [eax + esi + 0xe]
add eax, 0x12
add eax, ecx
pop edi
add eax, esi
pop esi
mov dword [0x52a1bc], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450d40
mov esp, ebp
pop ebp
ret
push 0x12
push edi
lea edx, [ebp - 0x48]
mov ecx, esi
call fcn.00401c70
add esp, 8
cmp eax, 0xffffffff
jne 0x4025dc
push 0xb
push edi
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.00401c70
add esp, 8
cmp eax, 0xffffffff
je 0x4025c7
mov ecx, dword [eax + esi + 0xb]
add eax, 0xf
add eax, ecx
pop edi
add eax, esi
pop esi
mov dword [0x52a1bc], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450d40
mov esp, ebp
pop ebp
ret
push 0x12
push edi
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.00401c70
add esp, 8
cmp eax, 0xffffffff
je 0x4025fd
mov ecx, dword [eax + esi + 0x12]
add eax, 0x16
add eax, ecx
pop edi
add eax, esi
pop esi
mov dword [0x52a1bc], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450d40
mov esp, ebp
pop ebp
ret
int3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450d40
mov esp, ebp
pop ebp
ret