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

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x64
push ebp
push 0x40
mov eax, edx
xor ebp, ebp
call fcn.004013e0
add esp, 4
test eax, eax
jne 0x410cd1
xor eax, eax
pop ebp
add esp, 0x64
ret
mov ecx, dword [esp + 0x6c]
cmp word [ecx], 0x5a4d
jne 0x410cca
push ebx
mov ebx, dword [ecx + 0x3c]
lea eax, [ebx + 0xf8]
push eax
mov eax, edx
call fcn.004013e0
add esp, 4
test eax, eax
je 0x410d0f
add ebx, ecx
cmp dword [ebx], 0x4550
jne 0x410d0f
cmp word [ebx + 4], 0x14c
jne 0x410d0f
mov edx, dword [ebx + 0x38]
test dl, 1
je 0x410d17
pop ebx
xor eax, eax
pop ebp
add esp, 0x64
ret
movzx eax, word [ebx + 6]
test eax, eax
movzx ecx, word [ebx + 0x14]
push esi
push edi
lea esi, [ecx + ebx + 0x18]
jbe 0x410d4d
add esi, 0xc
mov edi, eax
mov edi, edi
mov ecx, dword [esi + 4]
test ecx, ecx
mov eax, dword [esi]
jne 0x410d3d
add eax, edx
jmp 0x410d3f
add eax, ecx
cmp eax, ebp
jbe 0x410d45
mov ebp, eax
add esi, 0x28
sub edi, 1
jne 0x410d30
push 0
mov ecx, 0x45abf4
call fcn.00401ad0
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x410d68
mov eax, dword [eax + 4]
jmp 0x410d6b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea edx, [esp + 0x18]
mov esi, eax
push edx
mov dword [esp + 0x14], esi
call fcn.00409cd0
add esp, 4
cmp dword [eax + 0x18], edi
jb 0x410d8f
mov eax, dword [eax + 4]
jmp 0x410d92
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402420
lea eax, [esp + 0x50]
push eax
call esi
mov edx, dword [esp + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, edx
call fcn.004013c0
mov esi, eax
mov ecx, edx
mov eax, ebp
call fcn.004013c0
cmp esi, eax
jne 0x410fb4
mov edi, dword [esp + 0x94]
mov ecx, dword [ebx + 0x34]
push edi
push 4
push 0x3000
push esi
push ecx
call dword [esp + 0x94]
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x410e0f
push edi
push 4
push 0x3000
push esi
push eax
call dword [esp + 0x94]
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x410fb4
lea edx, [esp + 0x18]
push edx
call fcn.0040a5e0
add esp, 4
cmp dword [eax + 0x18], 0x10
jb 0x410e27
mov eax, dword [eax + 4]
jmp 0x410e2a
add eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
mov eax, dword [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00402420
lea ecx, [esp + 0x34]
push ecx
call fcn.0040ac10
add esp, 4
cmp dword [eax + 0x18], 0x10
jb 0x410e5d
mov eax, dword [eax + 4]
jmp 0x410e60
add eax, 4
mov edx, dword [esp + 0x10]
push eax
push edx
call esi
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00402420
push 0x40
push 8
call esi
push eax
call dword [esp + 0x20]
mov esi, eax
test esi, esi
jne 0x410ea0
push edi
push 0x8000
push eax
push ebp
call dword [esp + 0x94]
add esp, 0x10
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x64
ret
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov dword [esi + 4], ebp
movzx eax, word [ebx + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x88]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x90]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x34], edi
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebx + 0x54]
push ecx
call fcn.004013e0
add esp, 4
test eax, eax
je 0x410fab
push edi
push 4
push 0x1000
push ecx
push ebp
call edx
mov edx, dword [ebx + 0x54]
mov edi, eax
mov eax, dword [esp + 0x8c]
push edx
push eax
push edi
call fcn.0042f130
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x9c]
add edi, ecx
push ebx
mov dword [esi], edi
push edx
mov dword [edi + 0x34], ebp
push eax
mov edi, esi
call fcn.004013f0
add esp, 0x2c
test eax, eax
je 0x410fab
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [ebx + 0x34]
je 0x410f67
push eax
mov eax, esi
call fcn.00401540
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x410f6e
mov dword [esi + 0x18], 1
call fcn.004015e0
test eax, eax
je 0x410fab
push esi
call fcn.0040bc80
add esp, 4
test eax, eax
je 0x410fab
mov eax, esi
call fcn.00401500
test eax, eax
je 0x410fab
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x410fdc
add eax, ebp
cmp dword [esi + 0x14], 0
je 0x410fcf
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x410fbe
push esi
call fcn.0040bf40
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x64
ret
pop edi
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x64
ret
pop edi
mov dword [esi + 0x38], eax
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x64
ret
pop edi
mov dword [esi + 0x38], 0
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x64
ret