Function at 0x434d65
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x434d78
xor eax, eax
jmp 0x434f73
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x434d8a
xor eax, eax
jmp 0x434f72
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x434f6f
add esi, ebx
cmp dword [esi], 0x4550
jne 0x434f6f
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x434f6f
test al, 2
je 0x434f6f
cmp word [esi + 0x14], 0xe0
jne 0x434f6f
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042b360
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x434f6f
xor ecx, ecx
cmp dword [0x4971ac], ecx
setne cl
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x434e20
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x434e1a
cmp esi, dword [ebp + 0xc]
jae 0x434e1a
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x434e0c
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ecx + ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x434e5b
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x434f6f
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.0046ca60
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x434f6a
mov dword [ebp + 0xc], eax
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx]
add eax, ecx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x434ebd
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x434f39
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.0046ca60
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x434f15
mov eax, dword [ebx]
add eax, dword [ebp + 0xc]
push str..rsrc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x434f15
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xc]
lea ecx, [edx + ecx + 0xc]
mov edx, dword [ebp + 8]
mov eax, esi
sub eax, dword [ebp + 8]
add edx, eax
add dword [ecx], edx
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xc]
lea ecx, [edx + ecx + 0x14]
mov edx, dword [ebp + 8]
add eax, edx
add dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx]
add eax, ecx
mov ecx, dword [eax + 0x10]
cmp dword [eax + 8], ecx
jae 0x434f39
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ebx, dword [eax + 0x38]
xor edx, edx
lea eax, [ecx + ebx - 1]
div ebx
imul eax, ebx
jmp 0x434f4f
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x434ea8
xor eax, eax
inc eax
jmp 0x434f71
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret