Function at 0x1400909a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov rax, qword [0x1400eab80]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x30], 0
lea rax, str.CLocalizer::GetResourceString
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r9, [0x1400c2e08]
mov r8d, 0x153
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0xc8]
call fcn.14008f230
nop
cmp dword [rsp + 0x158], 0xffff
jbe 0x140090a45
mov r8d, 0x155
lea rdx, [0x1400c2dd8]
lea rcx, str.dwResource___0xFFFF
call fcn.14008ef30
mov eax, dword [rsp + 0x158]
and eax, 0xffff
mov word [rsp + 0x50], ax
lea rdx, [0x1400b8d54]
lea rcx, [rsp + 0x68]
call fcn.1400154e0
nop
movzx eax, word [rsp + 0x160]
test eax, eax
jne 0x140090a81
call fcn.14008fce0
mov word [rsp + 0x160], ax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140090aa3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x78], rax
movzx eax, word [rsp + 0x50]
sar eax, 4
inc eax
movzx eax, ax
movzx r9d, word [rsp + 0x160]
mov r8d, eax
mov edx, 6
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x140090b80
movzx eax, word [rsp + 0x160]
movzx ecx, word [rsp + 0x50]
sar ecx, 4
inc ecx
movzx ecx, cx
movzx edx, word [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
lea rax, str.Cannot_find_resource_handle_wResource_0x_x__MAKEINTRESOURCE_0x_x__liLanguage_0x_x
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9, [0x1400c2e50]
mov r8d, 0x185
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0xc8]
call fcn.14008ef50
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x150]
call fcn.1400154b0
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.140003680
nop
lea rcx, [rsp + 0xc8]
call fcn.14008f210
mov rax, qword [rsp + 0x150]
jmp 0x140090e3e
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140090c42
movzx eax, word [rsp + 0x160]
movzx ecx, word [rsp + 0x50]
sar ecx, 4
inc ecx
movzx ecx, cx
movzx edx, word [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
lea rax, str.Cannot_load_resource_wResource_0x_x__MAKEINTRESOURCE_0x_x__liLanguage_0x_x
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [0x1400c2ed8]
mov r8d, 0x18f
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0xc8]
call fcn.14008ef50
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x150]
call fcn.1400154b0
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.140003680
nop
lea rcx, [rsp + 0xc8]
call fcn.14008f210
mov rax, qword [rsp + 0x150]
jmp 0x140090e3e
mov dword [rsp + 0x64], 0
jmp 0x140090c56
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
movzx eax, word [rsp + 0x50]
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cmp dword [rsp + 0x64], eax
jge 0x140090ca0
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x58], rax
jmp 0x140090c4c
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x60]
inc eax
mov eax, eax
mov qword [rsp + 0xe0], rax
mov eax, 2
mov rcx, qword [rsp + 0xe0]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140024b64
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x60]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.140058e24
mov eax, dword [rsp + 0x60]
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
mov word [rdx + rax*2], cx
cmp dword [rsp + 0x170], 0
je 0x140090daa
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140008700
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x110]
call fcn.14008f3f0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x54]
or eax, 2
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0xa0]
call fcn.1400087d0
mov qword [rsp + 0x88], rax
jmp 0x140090db7
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x68]
call fcn.1400155a0
nop
mov eax, dword [rsp + 0x54]
and eax, 2
test eax, eax
je 0x140090de7
and dword [rsp + 0x54], 0xfffffffd
lea rcx, [rsp + 0x110]
call fcn.1400087b0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140024b5c
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x150]
call fcn.1400154b0
mov eax, dword [rsp + 0x54]
or eax, 1
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.140003680
nop
lea rcx, [rsp + 0xc8]
call fcn.14008f210
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140054f80
add rsp, 0x148
ret