Function at 0x433597
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 0x4335aa
xor eax, eax
jmp 0x4337a5
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x4335bc
xor eax, eax
jmp 0x4337a4
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x4337a1
add esi, ebx
cmp dword [esi], 0x4550
jne 0x4337a1
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x4337a1
test al, 2
je 0x4337a1
cmp word [esi + 0x14], 0xe0
jne 0x4337a1
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00429329
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x4337a1
xor ecx, ecx
cmp dword [0x48b170], 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 0x433652
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x43364c
cmp esi, dword [ebp + 0xc]
jae 0x43364c
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x43363e
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 0x43368d
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x4337a1
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.00461d90
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 0x43379c
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 0x4336ef
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43376b
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.00461d90
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x433747
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 0x433747
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 0x43376b
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 0x433781
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 0x4336da
xor eax, eax
inc eax
jmp 0x4337a3
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret