Function at 0x140084680
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 [0x140183670]
xor edi, edi
mov qword [rsp + 0x78], rdi
mov r14, r8
mov rsi, rdx
mov rbp, rcx
test rbx, rbx
jne 0x140084715
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x140084715
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400848cb
test byte [0x14016b76d], 1
je 0x1400848cb
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 0x1400848cb
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x14008476c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400848cb
test byte [0x14016b76d], 1
je 0x1400848cb
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 0x1400846f6
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400847ba
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400848cb
test byte [0x14016b76d], 1
je 0x1400848cb
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 0x1400846f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x1400847fe
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400848cb
test byte [0x14016b76d], 1
je 0x1400848cb
lea rax, str.Unable_to_get_resource_pointer.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x16d
jmp 0x1400848b1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x140084840
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400848cb
test byte [0x14016b76d], 1
je 0x1400848cb
lea rax, str.Unable_to_get_resource_size.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x176
jmp 0x1400848b1
lea r8, [0x14013daac]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140001b5e
test eax, eax
jne 0x14008488b
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008488b
mov r9, rcx
lea r8d, [rax + 1]
mov rcx, rbp
mov rdx, rbx
call fcn.14000376f
cmp rax, 1
jne 0x1400848cb
mov rcx, qword [rsp + 0x78]
call fcn.140002fa9
mov edi, 1
jmp 0x1400848cb
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400848cb
test byte [0x14016b76d], 1
je 0x1400848cb
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 0x1400848da
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