Function at 0x180121be0
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 [0x1803fc9f0]
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 0x180121e73
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x180121c40
inc eax
movsxd rdi, eax
add rdi, rdi
mov eax, 0x80000000
add rax, rdi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x180121e73
cmp edi, 0x400
jg 0x180121ca5
movsxd r14, edi
mov rcx, r14
call fcn.180123e40
test al, al
je 0x180121ca5
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x180121c92
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1802b8650
sub rsp, rax
lea rcx, [rsp + 0x20]
jmp 0x180121cd9
movsxd rcx, edi
mov rax, rcx
not rax
cmp rax, 0x10
jb 0x180121e68
add rcx, 0x10
call fcn.1802d7b48
test rax, rax
jne 0x180121ccb
mov rcx, rbx
jmp 0x180121cd9
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.18011ea00
mov rdi, rax
test rax, rax
je 0x180121e73
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 0x180121d38
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 0x180121d38
call fcn.18011e7e0
mov edi, eax
jmp 0x180121e37
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x180121d59
call fcn.18011e7e0
jmp 0x180121e26
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x180121d7b
call fcn.18011e7e0
jmp 0x180121e26
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 0x180121d9d
mov edi, 0x8007000e
jmp 0x180121e28
mov ecx, eax
test eax, eax
je 0x180121dd3
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jae 0x180121dbc
mov ecx, 0x80070216
call fcn.18011e9e0
cmp rcx, 0x400
jbe 0x180121dd3
mov rdx, rcx
lea rcx, [rbp + 0x40]
call fcn.18011e4a0
jmp 0x180121ddb
lea rax, [rbp + 0x48]
mov qword [rbp + 0x40], rax
jmp 0x180121dec
mov rcx, qword [rbp + 0x40]
test rcx, rcx
jne 0x180121dfc
mov edi, 0x8007000e
jmp 0x180121e28
mov r9, rdi
mov r8, r14
mov rdx, rdi
call fcn.180123fb0
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.180121a00
mov edi, eax
test rsi, rsi
je 0x180121e37
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x180121e4b
lea rcx, [rbp + 0x40]
call fcn.18011f670
nop
test rbx, rbx
je 0x180121e64
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp], rbx
call fcn.1802d0c88
test rbx, rbx
jne 0x180121e50
mov eax, edi
jmp 0x180121ea9
mov ecx, 0x80070216
call fcn.18011e9e0
nop
lea rax, [rbp + 0x48]
cmp qword [rbp + 0x40], rax
je 0x180121e87
lea rcx, [rbp + 0x40]
call fcn.18011f670
nop
test rbx, rbx
je 0x180121ea4
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp], rbx
call fcn.1802d0c88
test rbx, rbx
jne 0x180121e90
mov eax, 0x8007000e
mov rcx, qword [rbp + 0x450]
xor rcx, rbp
call fcn.1802b85a0
lea rsp, [rbp + 0x460]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret