Function at 0x405710
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 0x405796
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 0x40578d
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
jmp 0x405794
xor eax, eax
jmp 0x405a0b
jmp 0x40579d
xor eax, eax
jmp 0x405a0b
push 0xa
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4057e1
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 0x4057d8
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
jmp 0x4057df
xor eax, eax
jmp 0x405a0b
jmp 0x4057e8
xor eax, eax
jmp 0x405a0b
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 0x40583d
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x28]
jae 0x40595e
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 0x405893
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 0x40588a
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
jmp 0x405891
xor eax, eax
jmp 0x405a0b
jmp 0x40589a
xor eax, eax
jmp 0x405a0b
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.004070e0
add esp, 0xc
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
call fcn.004056c0
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0
jmp 0x4058e8
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x54]
jae 0x405938
mov dword [ebp - 0x34], 0
jmp 0x405902
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x54]
jae 0x405936
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.004070e0
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 0x4058f9
jmp 0x4058df
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 0x405834
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x40f304
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.123123
call fcn.00407230
add esp, 0x10
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.004070e0
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