Function at 0x140018420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x540
lea rbp, [rsp + 0x40]
mov rax, qword [0x1400d8538]
xor rax, rbp
mov qword [rbp + 0x4f0], rax
mov dword [rbp + 0x50], 3
mov qword [rbp + 0x10], 0
mov rax, qword [rbp + 0x510]
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xe0], 0
mov rax, qword [rbp + 0x518]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x1400184a4
mov qword [rbp + 0x78], 0
jmp 0x14001861e
mov rcx, qword [rbp + 0x38]
call fcn.140037498
inc eax
mov dword [rbp], eax
mov eax, dword [rbp]
mov dword [rbp + 0x40], eax
mov eax, 2
movsxd rcx, dword [rbp + 0x40]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x60], rax
cmp qword [rbp + 0x60], 0x7fffffff
jg 0x1400184e0
cmp qword [rbp + 0x60], 0xffffffff80000000
jge 0x140018510
xor eax, eax
cmp eax, 0x216
jl 0x1400184f2
mov dword [rbp + 0x20], 0x216
jmp 0x140018508
mov eax, 0x216
and eax, 0xffff
or eax, 0x70000
bts eax, 0x1f
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x24], eax
jmp 0x14001851d
mov eax, dword [rbp + 0x60]
mov dword [rbp], eax
mov dword [rbp + 0x24], 0
cmp dword [rbp + 0x24], 0
jge 0x140018530
mov qword [rbp + 0x30], 0
jmp 0x140018616
cmp dword [rbp], 0x400
jg 0x140018580
movsxd rax, dword [rbp]
mov rcx, rax
call fcn.14001eef0
movzx eax, al
test eax, eax
je 0x140018580
movsxd rax, dword [rbp]
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140018566
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140022d10
sub rsp, rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x28], rax
jmp 0x140018594
movsxd rax, dword [rbp]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140005d40
mov qword [rbp + 0x28], rax
mov eax, dword [rbp]
mov dword [rbp + 0x48], eax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x28], 0
je 0x1400185b3
cmp qword [rbp + 0x38], 0
jne 0x1400185bd
mov qword [rbp + 0x30], 0
jmp 0x140018616
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rbp + 0x48]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x38]
xor edx, edx
mov ecx, dword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
jne 0x14001860e
mov qword [rbp + 0x30], 0
jmp 0x140018616
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140018684
mov dword [rbp + 0x58], 0x8007000e
lea rax, [rbp + 0xe8]
cmp qword [rbp + 0xe0], rax
je 0x140018651
lea rcx, [rbp + 0xe0]
call fcn.14000de80
nop
cmp qword [rbp + 0x10], 0
je 0x14001867c
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp + 0x10], rax
mov rcx, qword [rbp + 0x88]
call fcn.140033d54
jmp 0x140018651
mov eax, dword [rbp + 0x58]
jmp 0x140018871
mov r8d, 0x60
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x1400186b7
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x1400186cb
call fcn.140006580
mov dword [rbp + 8], eax
jmp 0x14001880f
mov r8, qword [rbp + 0x528]
mov rdx, qword [rbp + 0x520]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0
jne 0x1400186fb
call fcn.140006580
mov dword [rbp + 8], eax
jmp 0x14001880f
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x80], rax
cmp qword [rbp + 0x80], 0
jne 0x140018727
call fcn.140006580
mov dword [rbp + 8], eax
jmp 0x14001880f
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x98], rax
mov eax, dword [rbp + 4]
inc eax
cmp eax, dword [rbp + 4]
jae 0x14001875c
mov dword [rbp + 8], 0x8007000e
jmp 0x14001880f
mov eax, dword [rbp + 4]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rbp + 0xe0]
call fcn.140005e20
nop
jmp 0x140018774
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
jne 0x140018795
mov dword [rbp + 8], 0x8007000e
jmp 0x14001880f
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xa0], rax
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 4]
mov r9d, eax
mov r8, qword [rbp + 0x98]
mov edx, ecx
mov rcx, qword [rbp + 0xa0]
call fcn.14001fd50
mov ecx, eax
call fcn.1400064a0
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xa8], rax
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0xa8]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xb0], rax
mov r8d, dword [rbp + 0x530]
mov rdx, qword [rbp + 0xb0]
lea rcx, [rbp + 0xc0]
call fcn.1400181a0
mov dword [rbp + 8], eax
cmp qword [rbp + 0x18], 0
je 0x140018820
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rbp + 8]
mov dword [rbp + 0x5c], eax
lea rax, [rbp + 0xe8]
cmp qword [rbp + 0xe0], rax
je 0x140018843
lea rcx, [rbp + 0xe0]
call fcn.14000de80
nop
cmp qword [rbp + 0x10], 0
je 0x14001886e
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp + 0x10], rax
mov rcx, qword [rbp + 0xb8]
call fcn.140033d54
jmp 0x140018843
mov eax, dword [rbp + 0x5c]
mov rcx, qword [rbp + 0x4f0]
xor rcx, rbp
call fcn.140022d70
lea rsp, [rbp + 0x500]
pop rbp
ret