Function at 0x14007b798
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13d, edx
mov esi, r9d
mov rbp, r8
mov rbx, rcx
test edx, edx
je 0x14007ba87
call fcn.1400321b4
movzx edx, r13w
mov r8d, 0xf1
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x14007b7f1
xor eax, eax
jmp 0x14007ba6f
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
mov r14, rax
test rax, rax
je 0x14007b7ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14007b7ea
movzx ecx, word [rax + 6]
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140011164
xor r8d, r8d
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14007ba8d
movzx eax, word [rdi + 2]
movzx ecx, word [rdi + 4]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], ecx
lea r15d, [rax + 6]
mov dword [rsp + 0x30], r15d
lea r12d, [rcx + 6]
mov dword [rsp + 0x34], r12d
test esi, esi
je 0x14007b879
mov eax, dword [rbx + 0x1178]
jmp 0x14007b87f
mov eax, dword [0x1403f2714]
mov esi, 1
test eax, eax
jne 0x14007b945
mov eax, dword [0x1403f22c0]
test eax, eax
jne 0x14007b8ad
lea rcx, [0x1403f22c0]
call fcn.1400692fc
mov eax, esi
xor r8d, r8d
mov dword [0x1403f22c0], eax
mov ecx, dword [0x1403f2580]
movsd xmm2, qword [0x1403f2578]
test ecx, ecx
je 0x14007b8c4
movaps xmm0, xmm2
jmp 0x14007b8cc
movsd xmm0, qword [0x1402f09e0]
ucomisd xmm0, qword [0x1402f09e0]
jp 0x14007b8d8
je 0x14007b945
test eax, eax
jne 0x14007b8ff
lea rcx, [0x1403f22c0]
call fcn.1400692fc
mov ecx, dword [0x1403f2580]
xor r8d, r8d
movsd xmm2, qword [0x1403f2578]
mov dword [0x1403f22c0], esi
test ecx, ecx
jne 0x14007b90b
movsd xmm2, qword [0x1402f09e0]
movd xmm0, r15d
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm2
addsd xmm0, qword [0x1402f1308]
cvttsd2si eax, xmm0
movd xmm0, r12d
cvtdq2pd xmm0, xmm0
mov dword [rsp + 0x30], eax
mulsd xmm0, xmm2
addsd xmm0, qword [0x1402f1308]
cvttsd2si eax, xmm0
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
test edx, edx
je 0x14007b96a
mov r8, qword [rsp + 0x20]
mov rdx, rcx
mov rcx, rbx
xor r9d, r9d
call fcn.14008253c
jmp 0x14007b988
movsd xmm0, qword [0x1403f29a8]
ucomisd xmm0, qword [0x1402f09e0]
jp 0x14007b992
jne 0x14007b992
mov rdx, qword [rsp + 0x20]
call fcn.14008298c
mov edx, dword [rsp + 0x98]
xor r8d, r8d
cmp dword [rbp + 4], r8d
jne 0x14007b99c
mov dword [rbp + 4], r13d
cmp dword [rbx + 0x1308], r8d
jne 0x14007b9c2
mov rax, qword [rbx]
mov r8d, edx
mov rdx, rbp
mov rcx, rbx
call qword [rax + 0x668]
xor r8d, r8d
test eax, eax
je 0x14007ba5a
mov r15d, r8d
mov r12d, dword [rbx + 0x114c]
cmp r8w, word [rdi + 6]
jae 0x14007ba2a
mov r14, qword [rsp + 0x28]
lea rbp, [rdi + 8]
mov r13d, dword [rsp + 0x98]
movzx edx, word [rbp]
mov dword [r14], edx
test r13d, r13d
jne 0x14007ba09
test edx, edx
je 0x14007ba09
lea rcx, vtable.CMap_unsigned_int__unsigned_int__int__int_.0
call fcn.14006d01c
mov dword [rax], r12d
add r12d, esi
xor r8d, r8d
movzx eax, word [rdi + 6]
add r15d, esi
add rbp, 2
add r14, 4
cmp r15d, eax
jl 0x14007b9e4
mov r13d, dword [rsp + 0x88]
mov r14, qword [rsp + 0x38]
mov rax, qword [rbx]
mov r9d, esi
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
mov dword [rbx + 0x1308], r13d
movzx r8d, word [rdi + 6]
call qword [rax + 0x678]
xor r15d, r15d
mov esi, eax
test eax, eax
jne 0x14007ba5a
mov dword [rbx + 0x1308], r15d
mov rcx, qword [rsp + 0x28]
call fcn.140010948
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140010b1c
int3
call fcn.140010b1c
int3