Function at 0x4059d0
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 0x405a56
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 0x405a4d
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
jmp 0x405a54
xor eax, eax
jmp 0x405ccb
jmp 0x405a5d
xor eax, eax
jmp 0x405ccb
push 0xa
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x405aa1
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 0x405a98
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
jmp 0x405a9f
xor eax, eax
jmp 0x405ccb
jmp 0x405aa8
xor eax, eax
jmp 0x405ccb
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 0x405afd
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x28]
jae 0x405c1e
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 0x405b53
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 0x405b4a
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], eax
jmp 0x405b51
xor eax, eax
jmp 0x405ccb
jmp 0x405b5a
xor eax, eax
jmp 0x405ccb
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.00406f80
add esp, 0xc
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
call fcn.00405980
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0
jmp 0x405ba8
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x54]
jae 0x405bf8
mov dword [ebp - 0x34], 0
jmp 0x405bc2
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x54]
jae 0x405bf6
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.00406f80
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 0x405bb9
jmp 0x405b9f
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 0x405af4
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x4102d4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.123123
call fcn.004070d0
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.00406f80
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