Function at 0x140081e70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, qword [0x14013daf8]
xor edi, edi
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x78], rdi
test rbx, rbx
jne 0x140081f05
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x140081f05
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400820bb
test byte [0x1401248cd], 1
je 0x1400820bb
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
lea r8, str.rsrc_file_extract_resource_file
mov ecx, edx
call fcn.140001a41
jmp 0x1400820bb
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x140081f5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400820bb
test byte [0x1401248cd], 1
je 0x1400820bb
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 0x140081ee6
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140081faa
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400820bb
test byte [0x1401248cd], 1
je 0x1400820bb
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 0x140081ee6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
jne 0x140081fee
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400820bb
test byte [0x1401248cd], 1
je 0x1400820bb
lea rax, str.Unable_to_get_resource_pointer.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x16d
jmp 0x1400820a1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x140082030
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400820bb
test byte [0x1401248cd], 1
je 0x1400820bb
lea rax, str.Unable_to_get_resource_size.
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x176
jmp 0x1400820a1
lea r8, [0x1400fdffc]
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.140096268
test eax, eax
jne 0x14008207b
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008207b
mov r9, rcx
lea r8d, [rax + 1]
mov rdx, rbx
mov rcx, rbp
call fcn.14009092c
cmp rax, 1
jne 0x1400820bb
mov rcx, qword [rsp + 0x78]
call fcn.1400923e8
mov edi, 1
jmp 0x1400820bb
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x1400820bb
test byte [0x1401248cd], 1
je 0x1400820bb
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
lea r8, str.rsrc_file_extract_resource_file
mov ecx, edx
call fcn.140001a41
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400820ca
call fcn.14008fd08
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret