Function at 0x1403a2930
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1406836b8]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor eax, eax
xor r15d, r15d
mov qword [rbp + 7], r15
mov r14, r9
mov qword [rbp - 0x39], rax
mov rdi, rdx
mov qword [rbp - 0x31], rax
mov rsi, rcx
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
test r8b, 1
je 0x1403a2a8e
test rdx, rdx
jne 0x1403a29a1
mov eax, 0x80070057
jmp 0x1403a2b94
lea r8, [0x14048531c]
mov ebx, 0x8004e007
lea rcx, [rbp - 0x39]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
cmp qword [rbp - 0x39], r15
je 0x1403a2b8b
xor r9d, r9d
lea rcx, [0x140485314]
xor r8d, r8d
xor edx, edx
call fcn.1403eafe0
mov qword [rbp - 0x31], rax
test rax, rax
je 0x1403a2a13
mov rcx, rax
call fcn.1403ea560
mov qword [rbp - 0x29], rax
test rax, rax
jne 0x1403a2a1d
cmp qword [rbp - 0x31], r15
lea rcx, [rbp - 0x31]
lea r8, [rbp - 0x21]
cmove rcx, r15
cmp qword [rbp - 0x21], r15
cmove r8, r15
test rcx, rcx
je 0x1403a2a13
xor edx, edx
call fcn.1403ebfb0
mov ebx, 0x80004005
jmp 0x1403a2b8b
mov rcx, qword [rbp - 0x31]
mov edi, 8
mov edx, edi
call fcn.1403ea3e0
mov rdx, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
call fcn.1403ea830
mov r9, qword [rbp - 0x39]
lea edx, [rdi - 7]
mov r8d, edi
lea rcx, [rbp + 0x1f]
mov ebx, 0x8004e00b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
jne 0x1403a2a76
mov edx, edi
lea rcx, [rbp + 0x1f]
call fcn.1403ea4d0
test eax, eax
je 0x1403a2a76
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.1403a3c50
mov ebx, eax
lea rcx, [rbp - 0x39]
call fcn.1403a33e0
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1403a2b8b
lea r9, [rbp + 0x1f]
mov dword [rbp + 0x1f], r15d
mov r8d, 0x20
mov ebx, 0x8004e00e
call sym.ErrorReportClient.exe_SfLoadResourceCustom
test rax, rax
jne 0x1403a2aca
lea r9, [rbp + 0x1f]
mov rdx, rdi
lea r8, str.BINARY
mov rcx, rsi
call sym.ErrorReportClient.exe_SfLoadResourceCustom
test rax, rax
je 0x1403a2b85
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1403a2b85
mov edx, dword [rbp + 0x1f]
test edx, edx
je 0x1403a2b8b
mov edi, 8
mov rcx, rax
cmp edx, edi
mov ebx, 0x8004e00b
cmova edx, edi
call fcn.1403ea4d0
test eax, eax
je 0x1403a2b8b
xor r9d, r9d
lea rcx, [0x140485314]
xor r8d, r8d
xor edx, edx
call fcn.1403eafe0
mov qword [rbp - 0x31], rax
test rax, rax
je 0x1403a2a13
mov rcx, rax
call fcn.1403ea560
mov qword [rbp - 0x29], rax
test rax, rax
je 0x1403a29ef
mov rcx, qword [rbp - 0x31]
mov edx, edi
call fcn.1403ea3e0
mov eax, dword [rbp + 0x1f]
lea r8, [0x1403a41b0]
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp + 0xf]
mov dword [rbp + 0x13], eax
mov dword [rbp + 0xf], edi
mov qword [rbp + 0x17], rsi
call fcn.1403f6620
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.1403a3c50
lea rcx, [rbp - 0x39]
mov ebx, eax
call fcn.1403a33e0
jmp 0x1403a2b8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rbp + 7]
mov qword [r14], rax
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14039bbb0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret