Function at 0x140048390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1a8
mov edi, r9d
mov r9d, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x180], xmm0
mov qword [rsp + 0x190], 0
lea ebp, [rdi + 0xf]
test edi, edi
cmovns ebp, edi
mov eax, ebp
sar eax, 4
inc eax
movzx r8d, ax
mov edx, 6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x140048565
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400484d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14004851d
and ebp, 0xfffffff0
sub edi, ebp
test edi, edi
jle 0x140048439
movzx ecx, word [rax]
lea rax, [rax + rcx*2]
add rax, 2
dec edi
jne 0x14004842a
movzx ecx, word [rax]
add rax, 2
jne 0x14004844b
test cx, cx
jne 0x140048650
mov rdi, qword [rsp + 0x1f0]
movzx r8d, cx
lea rbx, [rsp + 0x180]
mov rcx, rbx
mov rdx, rax
call fcn.14007dce0
mov rax, qword [rdi]
cmp rax, qword [rdi + 8]
je 0x140048573
movzx ecx, byte [rsp + 0x197]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0x188]
cmovs rbx, qword [rsp + 0x180]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rax
test rax, rax
js 0x140048624
test rbx, rbx
jne 0x1400484b9
test rax, rax
jne 0x14004867c
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
xor r9d, r9d
call fcn.140185ec0
jmp 0x1400485a1
mov ecx, 2
call fcn.1400f1460
test al, al
je 0x140048573
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....operadesktopwindowsl10n_handler_resource_l10n_handler.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r8d, 0x3f
mov r9d, 2
call fcn.14018c5b0
lea rcx, [rsp + 0x50]
lea rdx, str.Failed_to_load_string
jmp 0x14004860c
mov ecx, 2
call fcn.1400f1460
test al, al
je 0x140048573
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....operadesktopwindowsl10n_handler_resource_l10n_handler.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r8d, 0x45
mov r9d, 2
call fcn.14018c5b0
lea rcx, [rsp + 0x50]
lea rdx, str.Failed_to_lock_string
jmp 0x14004860c
mov ecx, 2
call fcn.1400f1460
test al, al
jne 0x1400485d7
mov rax, qword [rsp + 0x190]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x180]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x180], xmm0
mov qword [rsp + 0x190], 0
cmp byte [rsp + 0x197], 0
jns 0x1400485b8
mov rcx, qword [rsp + 0x180]
call fcn.14012c4dc
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14012d050
mov rax, rsi
add rsp, 0x1a8
pop rbx
pop rbp
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....operadesktopwindowsl10n_handler_resource_l10n_handler.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r8d, 0x39
mov r9d, 2
call fcn.14018c5b0
lea rcx, [rsp + 0x50]
lea rdx, str.Failed_to_find_string
mov r8d, shutdown
call fcn.140167e50
mov rcx, rdi
call fcn.14018c630
jmp 0x140048573
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.140168d70
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__n__0____s___nullptr
mov r8d, 0x988
call fcn.140168d70
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.140168d70
int3