Function at 0x401cd0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x64], 0x36
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 0x98
xor eax, eax
mov word [ebp - 4], ax
mov dword [ebp - 0x2c], 0
push 2
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401d56
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x401d4d
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
jmp 0x401d54
xor eax, eax
jmp 0x401fba
jmp 0x401d5d
xor eax, eax
jmp 0x401fba
push 0xa
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x401da1
mov eax, dword [ebp - 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x401d98
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
jmp 0x401d9f
xor eax, eax
jmp 0x401fba
jmp 0x401da8
xor eax, eax
jmp 0x401fba
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
imul ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
push 4
push 0x3000
mov edx, dword [ebp - 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x20], 0x28
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
jmp 0x401dfd
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x28]
jae 0x401f1e
push 2
mov eax, dword [ebp - 0x1c]
add eax, 1
movzx ecx, ax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401e53
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x401e4a
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
jmp 0x401e51
xor eax, eax
jmp 0x401fba
jmp 0x401e5a
xor eax, eax
jmp 0x401fba
push 4
push 0x3000
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004012f0
add esp, 0xc
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
call fcn.00401c80
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0
jmp 0x401ea8
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x54]
jae 0x401ef8
mov dword [ebp - 0x34], 0
jmp 0x401ec2
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x54]
jae 0x401ef6
push 3
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
push edx
call fcn.004012f0
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, 3
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
add ecx, 3
mov dword [ebp - 0x20], ecx
jmp 0x401eb9
jmp 0x401e9f
mov dword [ebp - 0x20], 0x28
push 0x8000
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
jmp 0x401df4
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401bf0
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
sub edx, 1
imul eax, edx, 0x28
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
sub edx, 1
imul ecx, edx, 0x28
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + eax + 0x14]
mov edx, dword [ebp - 0x58]
add eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x40], eax
push 0x40
push 0x3000
mov eax, dword [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004012f0
add esp, 0xc
push 0x8000
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x5c]
mov esp, ebp
pop ebp
ret