Function at 0x140017270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x480
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14002a520]
xor rax, rbp
mov qword [rbp + 0x450], rax
mov r12, r9
mov r15, r8
mov rsi, rdx
xor ebx, ebx
mov qword [rbp], rbx
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x40], rbx
test rdx, rdx
je 0x140017514
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400172d0
inc eax
movsxd rdi, eax
add rdi, rdi
mov eax, 0x80000000
add rax, rdi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140017514
cmp edi, 0x400
jg 0x140017335
movsxd r14, edi
mov rcx, r14
call fcn.14000daf0
test al, al
je 0x140017335
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x140017322
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140019e10
sub rsp, rax
lea rcx, [rsp + 0x20]
jmp 0x14001736b
movsxd rcx, edi
or rax, 0xffffffffffffffff
sub rax, rcx
cmp rax, 0x10
jb 0x140017509
add rcx, 0x10
call qword [sym.imp.MSVCR120.dll_malloc]
test rax, rax
jne 0x14001735d
mov rcx, rbx
jmp 0x14001736b
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp], rax
lea rcx, [rax + 0x10]
mov r9d, 3
mov r8d, edi
mov rdx, rsi
call fcn.140004960
mov rdi, rax
test rax, rax
je 0x140017514
xor edx, edx
lea r8d, [rdx + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x1400173ca
xor edx, edx
lea r8d, [rax + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
mov qword [rbp + 0x10], rax
test rax, rax
jne 0x1400173ca
call fcn.140004700
mov edi, eax
jmp 0x1400174c9
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x1400173eb
call fcn.140004700
jmp 0x1400174b8
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x14001740d
call fcn.140004700
jmp 0x1400174b8
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rbp + 8], edi
lea eax, [rdi + 1]
cmp eax, edi
jae 0x14001742f
mov edi, 0x8007000e
jmp 0x1400174ba
mov ecx, eax
test eax, eax
je 0x140017465
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x14001744e
mov ecx, 0x80070216
call fcn.140004920
cmp rcx, 0x400
jbe 0x140017465
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.1400040c0
jmp 0x14001746d
lea rax, [rbp + 0x48]
mov qword [rbp + 0x40], rax
jmp 0x14001747e
mov rcx, qword [rbp + 0x40]
test rcx, rcx
jne 0x14001748e
mov edi, 0x8007000e
jmp 0x1400174ba
mov r9, rdi
mov r8, r14
mov rdx, rdi
call fcn.1400195c0
mov rax, qword [rbp + 0x40]
mov byte [rdi + rax], 0
mov r8d, dword [rbp + 0x4c0]
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140016ff0
mov edi, eax
test rsi, rsi
je 0x1400174c9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x1400174dd
lea rcx, [rbp + 0x40]
call fcn.140015710
nop
test rbx, rbx
je 0x140017505
nop dword [rax]
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp], rbx
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
jne 0x1400174f0
mov eax, edi
jmp 0x14001754a
mov ecx, 0x80070216
call fcn.140004920
nop
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x140017528
lea rcx, [rbp + 0x40]
call fcn.140015710
nop
test rbx, rbx
je 0x140017545
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp], rbx
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
jne 0x140017530
mov eax, 0x8007000e
mov rcx, qword [rbp + 0x450]
xor rcx, rbp
call fcn.140019e70
lea rsp, [rbp + 0x460]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret