Function at 0x40f170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
lea rcx, [rbp + 0x8c]
mov rdx, qword [0x0040b438]
call fcn.00407130
nop
mov rcx, qword [0x0041ce60]
lea rdx, [0x0040f62c]
mov r8d, 0xa
call sub.kernel32.dll_FindResourceW
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x40f5a8
mov rcx, qword [0x0041ce60]
mov rdx, qword [rbp + 0x30]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
test ebx, ebx
je 0x40f5a8
mov rcx, qword [0x0041ce60]
mov rdx, qword [rbp + 0x30]
call sub.kernel32.dll_LoadResource
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x40f5a8
mov rcx, qword [rbp + 0x38]
call sub.kernel32.dll_LockResource
mov rsi, rax
mov rcx, rsi
lea rdx, [rbp + 0x8c]
mov r8d, 4
call fcn.00403a80
lea rcx, [rbp + 0x90]
mov rdx, qword [0x0040b318]
mov r8d, 1
mov r9d, dword [rbp + 0x8c]
call fcn.00407e80
lea rcx, [rbp + 0x98]
mov rdx, qword [0x0040b360]
mov r8d, 1
mov r9d, dword [rbp + 0x8c]
call fcn.00407e80
lea rcx, [rbp + 0xa0]
mov rdx, qword [0x0040b3a8]
mov r8d, 1
mov r9d, dword [rbp + 0x8c]
call fcn.00407e80
lea rcx, [rbp + 0xa8]
mov rdx, qword [0x0040b3f0]
mov r8d, 1
mov r9d, dword [rbp + 0x8c]
call fcn.00407e80
add rsi, 4
mov rax, qword [rbp + 0x90]
mov rcx, rsi
mov rdx, rax
imul r8d, dword [rbp + 0x8c], 0x32
mov r8d, r8d
call fcn.00403a80
imul eax, dword [rbp + 0x8c], 0x32
mov eax, eax
add rsi, rax
mov rax, qword [rbp + 0x98]
mov rcx, rsi
mov rdx, rax
mov r8d, dword [rbp + 0x8c]
call fcn.00403a80
mov eax, dword [rbp + 0x8c]
add rsi, rax
mov rax, qword [rbp + 0xa0]
mov rcx, rsi
mov rdx, rax
mov eax, dword [rbp + 0x8c]
mov r8d, eax
shl eax, 8
sub eax, r8d
mov r8d, eax
call fcn.00403a80
mov eax, dword [rbp + 0x8c]
mov ecx, eax
shl eax, 8
sub eax, ecx
mov eax, eax
add rsi, rax
mov rax, qword [rbp + 0xa8]
mov rcx, rsi
mov rdx, rax
imul r8d, dword [rbp + 0x8c], 0x32
mov r8d, r8d
call fcn.00403a80
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
call sub.kernel32.dll_FreeResource
xor rdi, rdi
mov r13d, dword [rbp + 0x8c]
sub r13d, 1
cmp edi, r13d
jg 0x40f5a6
add r13d, 1
lea rcx, [rbp + 0x70]
mov edx, edi
add edx, 1
call fcn.0040b970
lea rcx, [rbp + 0x78]
lea rdx, [0x0040f648]
mov r8, qword [rbp + 0x70]
call fcn.00406c50
mov rcx, qword [rbp + 0x78]
call fcn.004068b0
mov rcx, qword [0x0041ce60]
mov rdx, rax
mov r8d, 0xa
call sub.kernel32.dll_FindResourceW
mov qword [rbp + 0x30], rax
mov rcx, qword [0x0041ce60]
mov rdx, qword [rbp + 0x30]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov rcx, qword [0x0041ce60]
mov rdx, qword [rbp + 0x30]
call sub.kernel32.dll_LoadResource
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x40f59a
mov rcx, qword [rbp + 0x38]
call sub.kernel32.dll_LockResource
mov rsi, rax
lea rcx, [rbp + 0x80]
call fcn.004057f0
mov rax, qword [rbp + 0xa0]
movsxd rcx, edi
shl rcx, 5
cmp byte [rax + rcx*8], 0
jne 0x40f4a3
lea rcx, [rbp + 0x60]
xor rdx, rdx
call fcn.00403d30
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
call fcn.0040bbc0
lea rcx, [rbp + 0x58]
mov rax, qword [rbp + 0x90]
movsxd rdx, edi
imul rdx, rdx, 0x33
lea rdx, [rax + rdx]
call fcn.00406a60
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x58]
call fcn.00406c50
jmp 0x40f512
lea rcx, [rbp + 0x50]
mov rax, qword [rbp + 0xa0]
movsxd rdx, edi
shl rdx, 5
lea rdx, [rax + rdx*8]
call fcn.00406a60
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x50]
call fcn.0040dea0
lea rcx, [rbp + 0x48]
mov rax, qword [rbp + 0x90]
movsxd rdx, edi
imul rdx, rdx, 0x33
lea rdx, [rax + rdx]
call fcn.00406a60
lea rcx, [rbp + 0x80]
mov edx, 3
mov r8, qword [rbp + 0x80]
lea r9, [0x0040f658]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.00406d70
mov rcx, qword [rbp + 0x80]
mov rdx, rsi
mov r8d, ebx
call fcn.0040f030
mov rax, qword [rbp + 0x98]
movsxd rcx, edi
cmp byte [rax + rcx], 0
je 0x40f58d
mov rcx, qword [rbp + 0x80]
call fcn.004068b0
mov rbx, rax
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0xa8]
movsxd rdx, edi
imul rdx, rdx, 0x33
lea rdx, [rax + rdx]
call fcn.00406a60
mov rcx, qword [rbp + 0x40]
call fcn.004068b0
xor rcx, rcx
lea rdx, [0x0040f65c]
mov r8, rbx
mov r9, rax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 1
call fcn.0040ca40
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
call sub.kernel32.dll_FreeResource
add edi, 1
cmp edi, r13d
jne 0x40f3b5
nop
nop
lea rcx, [rbp + 0x40]
mov edx, 9
call fcn.004058d0
lea rcx, [rbp + 0x8c]
mov rdx, qword [0x0040b438]
call fcn.004072b0
lea rsp, [rbp + 0xb0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret