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

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x64
push ebp
xor ebp, ebp
cmp ecx, 0x40
jae 0x421e26
xor eax, eax
pop ebp
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
cmp word [eax], 0x5a4d
jne 0x421e1f
push ebx
mov ebx, dword [eax + 0x3c]
lea edx, [ebx + 0xf8]
cmp ecx, edx
jb 0x421e59
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x421e59
cmp word [ebx + 4], 0x14c
jne 0x421e59
mov edx, dword [ebx + 0x38]
test dl, 1
je 0x421e61
pop ebx
xor eax, eax
pop ebp
add esp, 0x64
ret
movzx eax, word [ebx + 0x14]
push esi
lea esi, [eax + ebx + 0x18]
movzx eax, word [ebx + 6]
test eax, eax
push edi
jbe 0x421e95
add esi, 0xc
mov edi, eax
mov ecx, dword [esi + 4]
test ecx, ecx
mov eax, dword [esi]
jne 0x421e85
add eax, edx
jmp 0x421e87
add eax, ecx
cmp eax, ebp
jbe 0x421e8d
mov ebp, eax
add esi, 0x28
sub edi, 1
jne 0x421e78
push 0
mov ecx, 0x4771c4
call fcn.004136d0
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x421eb0
mov eax, dword [eax + 4]
jmp 0x421eb3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x18]
mov esi, eax
push ecx
mov dword [esp + 0x14], esi
call fcn.0041af20
add esp, 4
cmp dword [eax + 0x18], edi
jb 0x421ed7
mov eax, dword [eax + 4]
jmp 0x421eda
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00413d20
lea edx, [esp + 0x50]
push edx
call esi
mov ecx, dword [esp + 0x54]
mov edx, dword [ebx + 0x50]
lea eax, [ecx - 1]
lea esi, [edx + ecx - 1]
not eax
lea ecx, [ecx + ebp - 1]
and esi, eax
and ecx, eax
cmp esi, ecx
jne 0x4220f0
mov edi, dword [esp + 0x94]
mov edx, dword [ebx + 0x34]
push edi
push 4
push 0x3000
push esi
push edx
call dword [esp + 0x94]
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x421f56
push edi
push 4
push 0x3000
push esi
push eax
call dword [esp + 0x94]
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x4220f0
lea eax, [esp + 0x18]
push eax
call fcn.0041b830
add esp, 4
cmp dword [eax + 0x18], 0x10
jb 0x421f6e
mov eax, dword [eax + 4]
jmp 0x421f71
add eax, 4
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push ecx
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00413d20
lea edx, [esp + 0x34]
push edx
call fcn.0041be60
add esp, 4
cmp dword [eax + 0x18], 0x10
jb 0x421fa4
mov eax, dword [eax + 4]
jmp 0x421fa7
add eax, 4
push eax
mov eax, dword [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00413d20
push 0x40
push 8
call esi
push eax
call dword [esp + 0x20]
mov esi, eax
test esi, esi
jne 0x421fe7
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 edx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov dword [esi + 4], ebp
movzx ecx, word [ebx + 0x16]
shr ecx, 0xd
and ecx, 1
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x90]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], edi
mov edx, dword [esp + 0x54]
mov dword [esi + 0x3c], edx
mov eax, dword [ebx + 0x54]
cmp dword [esp + 0x7c], eax
jb 0x4220e7
push edi
push 4
push 0x1000
push eax
push ebp
call ecx
mov ecx, dword [esp + 0x8c]
mov edi, eax
mov eax, dword [ebx + 0x54]
push eax
push ecx
push edi
call fcn.00443200
mov eax, dword [esp + 0x98]
mov edx, dword [eax + 0x3c]
mov ecx, dword [esp + 0x9c]
add edi, edx
push ebx
mov dword [esi], edi
push ecx
mov dword [edi + 0x34], ebp
push eax
mov edi, esi
call fcn.004130b0
add esp, 0x2c
test eax, eax
je 0x4220e7
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
sub eax, dword [ebx + 0x34]
je 0x4220a3
push eax
mov eax, esi
call fcn.004131d0
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x4220aa
mov dword [esi + 0x18], 1
call fcn.00413260
test eax, eax
je 0x4220e7
push esi
call fcn.0041ced0
add esp, 4
test eax, eax
je 0x4220e7
mov eax, esi
call fcn.00413190
test eax, eax
je 0x4220e7
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x422118
add eax, ebp
cmp dword [esi + 0x14], 0
je 0x42210b
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x4220fa
push esi
call fcn.0041d1b0
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