Function at 0x472c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0x37], r8b
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x58], rdx
mov rcx, qword [rbp + 0x58]
call fcn.0040ac70
nop
xor rax, rax
mov byte [rbp + 0x36], al
mov rcx, qword [rbp + 0x58]
call fcn.0040bdd0
mov rcx, qword [0x0048fd58]
mov rdx, rax
mov r8d, 5
call sub.kernel32.dll_FindResourceW
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x28]
cmp qword [rax + 8], 0
je 0x472e51
mov rcx, qword [0x0048fd58]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_LoadResource
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x10], 0
je 0x472e51
lea rcx, [rbp + 0x38]
call fcn.00472ad0
mov rcx, qword [rbp + 0x38]
call fcn.004722c0
call fcn.004722a0
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_LockResource
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x18], rax
mov rcx, qword [0x0048fd58]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_SizeofResource
mov eax, eax
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x40], rax
movzx rax, byte [rbp + 0x37]
test al, al
je 0x472e07
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x40]
call fcn.00405270
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x50], rax
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x50]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x38], 0
jmp 0x472da2
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x20]
mov rax, qword [rbp + 0x28]
lea rdx, [rax + 0x30]
mov r8d, 8
call fcn.00405640
mov rax, qword [rbp + 0x28]
lea rcx, [rax + 0x30]
call fcn.004725d0
mov rax, qword [rbp + 0x28]
lea rcx, [rax + 0x30]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax + 0x28]
mov r8d, 8
call fcn.00405640
mov rax, qword [rbp + 0x28]
lea rax, [rax + 0x38]
add qword [rax], 8
mov rax, qword [rbp + 0x28]
add qword [rax + 0x20], 8
add qword [rax + 0x28], 8
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx + 0x40]
mov rcx, qword [rcx + 0x38]
neg rcx
lea rax, [rax + rcx]
cmp rax, 8
jge 0x472d43
call fcn.004723a0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x40]
lea rax, [rax + rcx - 1]
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x20]
movzx rax, byte [rax]
mov rcx, qword [rbp + 0x28]
mov byte [rcx + 0x48], al
mov al, 1
mov byte [rbp + 0x36], al
mov rcx, qword [rbp + 0x28]
movzx rax, byte [rcx + 0x48]
mov ecx, dword [rcx + 0x40]
sub ecx, eax
sub ecx, 1
mov rax, qword [rbp + 0x28]
mov dword [rax + 0x58], ecx
jmp 0x472e44
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x40]
call fcn.00405270
mov rcx, qword [rbp + 0x28]
mov qword [rcx + 0x50], rax
mov rcx, qword [rcx + 0x18]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + 0x28]
mov r8, qword [rax + 0x40]
call fcn.00405640
mov al, 1
mov byte [rbp + 0x36], al
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + 0x40]
mov dword [rcx + 0x58], eax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_FreeResource
nop
lea rcx, [rbp + 0x38]
call fcn.0040aae0
lea rcx, [rbp + 0x58]
call fcn.0040aae0
movzx rax, byte [rbp + 0x36]
lea rsp, [rbp + 0x40]
pop rbp
ret