Function at 0x140139bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp edx, 0xdf0
jne 0x140139c8b
lea rdi, [0x1404a9360]
call fcn.140120b00
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov ebx, dword [rdi + rax*4]
mov dword [rsp + 0x5c], ebx
mov rcx, qword [0x14052c3d8]
test rcx, rcx
je 0x140139cc6
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rdx, rsi
mov r8d, ebx
call qword [0x140505c38]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14029bbb0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ebx, edx
cmp edx, 0x692
jne 0x140139c9e
lea rdi, [0x1404a9330]
jmp 0x140139c2a
cmp ebx, 0x922
jne 0x140139cb2
lea rdi, [0x1404a9350]
jmp 0x140139c2a
cmp ebx, 0x7da
jne 0x140139c3e
lea rdi, [0x1404a9340]
jmp 0x140139c2a
call fcn.140343110
mov rdi, rax
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x50], rax
movsxd r15, ebx
mov rcx, r15
sar rcx, 0x3f
add r15, rax
adc rcx, 0
mov eax, ecx
and eax, 1
neg rax
xor rcx, rax
jne 0x140139f89
test rax, rax
js 0x140139f89
mov rax, r15
shr rax, 0x20
jne 0x140139f89
mov dword [rsp + 0x4c], r15d
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0
mov eax, r15d
shr eax, 4
inc eax
movzx edx, ax
lea rcx, [0x140000000]
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140139d84
mov rbx, rax
lea rcx, [0x140000000]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140139d84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140139e48
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x60]
mov dword [rcx], eax
call fcn.1401e7e80
lea rcx, [rsp + 0x5c]
call fcn.1401e7e80
lea rcx, [rsp + 0x50]
call fcn.1401e7e80
lea rcx, [rsp + 0x4c]
call fcn.1401e7e80
lea rcx, [rsp + 0x28]
call fcn.1401e7e80
lea rcx, [rsp + 0x40]
call fcn.1401e7e80
lea rcx, [rsp + 0x38]
call fcn.1401e7e80
lea rcx, [rsp + 0x34]
call fcn.1401e7e80
xorps xmm6, xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
cmp byte [rdi + 0x2f], 0
js 0x140139df8
add rdi, 0x18
jmp 0x140139dfc
mov rdi, qword [rdi + 0x18]
lea rbx, [rsp + 0x70]
mov r8d, 0x10
mov rcx, rbx
mov rdx, rdi
call fcn.140209bb0
mov rcx, rbx
call fcn.1401e7e80
call fcn.140316af0
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140139c71
call fcn.14029bbb0
int3
mov r14, rax
lea rcx, [0x140000000]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x34], eax
mov eax, eax
movaps xmm6, xmmword [0x140484a40]
lea rcx, [rsp + 0x70]
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0x60]
mov qword [rdx], r14
mov qword [rdx + 8], rax
call fcn.140139fd0
and r15d, 0xf
je 0x140139eba
lea rbx, [rsp + 0x70]
lea r14, [rsp + 0x60]
jmp 0x140139eab
movzx r8d, word [rax]
mov rcx, rbx
mov rdx, r14
call fcn.140343730
dec r15d
je 0x140139eba
mov rcx, rbx
call fcn.1403436b0
test rax, rax
je 0x140139ea6
jmp 0x140139e97
lea rcx, [rsp + 0x70]
call fcn.1403436b0
test rax, rax
je 0x140139f38
mov rbx, rax
movzx r8d, word [rax]
test r8, r8
jne 0x140139f92
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x80]
movabs rdi, 0xfffffffc00000000
mov rax, rcx
and rax, rdi
cmp rax, qword [0x140518a88]
jne 0x140139f0d
call fcn.1400c3860
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x70]
and rdi, rcx
cmp rdi, qword [0x140518a88]
jne 0x140139e2a
call fcn.1400c3860
jmp 0x140139e2a
mov rcx, qword [rsp + 0x80]
movabs rbx, 0xfffffffc00000000
mov rax, rcx
and rax, rbx
cmp rax, qword [0x140518a88]
jne 0x140139f5e
call fcn.1400c3860
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x70]
and rbx, rcx
cmp rbx, qword [0x140518a88]
jne 0x140139d84
call fcn.1400c3860
jmp 0x140139d84
int3
lea r14, [rsp + 0x60]
movaps xmmword [r14], xmm6
lea rcx, [rsp + 0x70]
mov rdx, r14
call fcn.140343730
cmp qword [r14 + 8], 0
je 0x140139f38
movzx r8d, word [rbx]
mov rdx, qword [rsp + 0x60]
mov rcx, rsi
call fcn.1400d7580
jmp 0x140139ee7