Function at 0x140084620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, qword [0x140183930]
xor edi, edi
mov qword [rsp + 0x78], rdi
mov r14, r8
mov rsi, rdx
mov rbp, rcx
test rbx, rbx
jne 0x1400846b5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x1400846b5
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008486b
test byte [0x14016ba1d], 1
je 0x14008486b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Unable_to_get_handle_to_module._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x150
mov edx, 1
lea r9, str..._rsrc_file.c
mov ecx, edx
lea r8, str.rsrc_file_extract_resource_file
call fcn.140003693
jmp 0x14008486b
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x14008470c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008486b
test byte [0x14016ba1d], 1
je 0x14008486b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Unable_to_get_resource_handle._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x15b
jmp 0x140084696
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14008475a
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008486b
test byte [0x14016ba1d], 1
je 0x14008486b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Unable_to_get_load_resource._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x164
jmp 0x140084696
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x14008479e
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008486b
test byte [0x14016ba1d], 1
je 0x14008486b
lea rax, str.Unable_to_get_resource_pointer.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x16d
jmp 0x140084851
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x1400847e0
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008486b
test byte [0x14016ba1d], 1
je 0x14008486b
lea rax, str.Unable_to_get_resource_size.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x176
jmp 0x140084851
lea r8, [0x14013db4c]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140001b5e
test eax, eax
jne 0x14008482b
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008482b
mov r9, rcx
lea r8d, [rax + 1]
mov rcx, rbp
mov rdx, rbx
call fcn.14000376f
cmp rax, 1
jne 0x14008486b
mov rcx, qword [rsp + 0x78]
call fcn.140002fa9
mov edi, 1
jmp 0x14008486b
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14008486b
test byte [0x14016ba1d], 1
je 0x14008486b
lea rax, str.Error:_Unable_to_create_resource_file.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x17f
mov edx, 1
lea r9, str..._rsrc_file.c
mov ecx, edx
lea r8, str.rsrc_file_extract_resource_file
call fcn.140003693
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008487a
call fcn.140003cfb
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret