Function at 0x140032ca0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r13, rdx
mov r12, rcx
lea rdi, [rcx + 8]
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x140032cff
mov rcx, qword [rdi]
test rcx, rcx
je 0x140032cff
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor r15d, r15d
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], r15
lea rdx, [rbp - 0x68]
mov rcx, qword [r12]
call fcn.140022a40
test al, al
jne 0x140032d26
xor bl, bl
jmp 0x1400331fa
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm1
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp + 0x10], xmm1
mov qword [rbp + 0x20], r15
mov dword [rbp + 0x28], 0xffffffff
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x20]
call fcn.140021e90
test al, al
jne 0x140032d63
xor bl, bl
jmp 0x1400331f0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.140009fe0
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jne 0x140032d93
xor bl, bl
jmp 0x1400331e5
lea rcx, [rbp + 0x50]
call fcn.1400049e0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x14003fa70]
movdqu xmmword [rbp + 0x40], xmm1
mov word [rbp + 0x30], r15w
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.1400121f0
test al, al
jne 0x140032dcf
xor bl, bl
jmp 0x1400331d1
lea rcx, [rsp + 0x50]
call fcn.140013bc0
nop
mov dword [rsp + 0x20], 2
mov r9d, 1
mov r8d, 0x40000000
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140013e50
test al, al
je 0x1400331c4
mov dword [rsp + 0x34], r15d
mov rsi, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
sub rsi, rdx
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400331c4
test rdx, rdx
je 0x140032e61
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400331c4
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140032e61
mov ecx, dword [rsp + 0x34]
cmp esi, ecx
jne 0x140032e61
mov eax, dword [rsp + 0x68]
sub eax, dword [rsp + 0x60]
cmp ecx, eax
je 0x140032e88
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400331c4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400331c4
mov qword [rbx], 0xffffffffffffffff
jmp 0x1400331c4
mov rsi, qword [rbp - 0x60]
mov eax, esi
mov r14, qword [rbp - 0x68]
sub eax, r14d
mov dword [rsp + 0x58], eax
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400331c4
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
mov r8d, 4
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140032e61
cmp dword [rsp + 0x34], 4
jne 0x140032e61
cmp r14, rsi
je 0x140032f40
mov r15, rsi
sub r15, r14
test r14, r14
je 0x140032f13
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140032f13
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, r15d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140032f13
mov eax, dword [rsp + 0x34]
cmp r15d, eax
jne 0x140032f13
sub esi, r14d
cmp eax, esi
je 0x140032f3d
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400331c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r15d, r15d
test eax, eax
je 0x1400331c4
mov qword [rbx], 0xffffffffffffffff
jmp 0x1400331c4
xor r15d, r15d
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140013fa0
mov rsi, qword [rsp + 0x40]
test al, al
je 0x140032f72
cmp qword [rsp + 0x50], 0
je 0x140032f96
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400140b0
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140032f96
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140032f96
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140032f96
mov qword [rbx], 0xffffffffffffffff
test rdi, rdi
je 0x140032fb1
mov rcx, qword [rdi]
test rcx, rcx
je 0x140032fa9
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, r15
mov qword [rsp + 0x78], r15
lea rdx, [r12 + 0x10]
lea rcx, [rbp - 0x38]
call fcn.140009510
nop
mov rdx, r13
lea rcx, [rbp + 0x30]
call fcn.1400146e0
movzx ebx, al
test al, al
jne 0x1400331b6
lea rcx, [rsp + 0x40]
call fcn.140013bc0
nop
mov dword [rsp + 0x20], 3
mov r14d, 1
mov r9d, r14d
mov r8d, 0x80000000
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140013e50
test al, al
je 0x1400331aa
lea rcx, [rsp + 0x40]
call fcn.140014030
test al, al
je 0x1400331aa
lea rcx, [rsp + 0x48]
call fcn.140013bc0
nop
mov dword [rsp + 0x20], 4
mov r9d, r14d
mov r8d, 0x40000000
mov rdx, r13
lea rcx, [rsp + 0x48]
call fcn.140013e50
test al, al
je 0x14003319f
mov dword [rsp + 0x38], r15d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov byte [rsp + 0x30], bl
lea rdx, [rsi + 8]
lea rax, [rbp - 0x80]
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
lea rcx, [rbp - 0x80]
call fcn.14000ce50
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140033195
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x140033195
cmp qword [rcx], 0xffffffffffffffff
je 0x140033195
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x38]
mov r8d, esi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140033195
mov eax, dword [rsp + 0x38]
cmp rsi, rax
jne 0x140033195
lea rcx, [rsp + 0x48]
call fcn.140014030
test al, al
je 0x140033195
mov dword [rsp + 0x38], r15d
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140033195
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x140033195
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x140033195
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x38]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140033195
mov eax, dword [rsp + 0x38]
cmp esi, eax
jne 0x140033195
cmp rax, rsi
jne 0x140033195
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400140b0
movzx ebx, bl
test al, al
cmovne ebx, r14d
cmp qword [rsp + 0x48], 0
je 0x140033169
lea rcx, [rsp + 0x48]
call fcn.140013f60
lea rcx, [rsp + 0x40]
call fcn.140013f60
nop
lea rcx, [rbp - 0x80]
call fcn.14000c390
nop
lea rcx, [rsp + 0x48]
call fcn.140013e00
nop
lea rcx, [rsp + 0x40]
call fcn.140013e00
jmp 0x1400331b6
lea rcx, [rbp - 0x80]
call fcn.14000c390
nop
lea rcx, [rsp + 0x48]
call fcn.140013e00
nop
lea rcx, [rsp + 0x40]
call fcn.140013e00
xor bl, bl
lea rcx, [rbp - 0x38]
call fcn.140009570
jmp 0x1400331c6
xor r15d, r15d
xor bl, bl
lea rcx, [rsp + 0x50]
call fcn.140013e00
nop
lea rcx, [rbp + 0x30]
call fcn.140002b70
nop
lea rcx, [rbp + 0x50]
call fcn.1400121a0
nop
lea rcx, [rsp + 0x60]
call fcn.14000c390
nop
lea rcx, [rbp - 0x20]
call fcn.140023600
nop
lea rcx, [rbp - 0x68]
call fcn.14000c390
nop
test rdi, rdi
je 0x14003321c
mov rcx, qword [rdi]
test rcx, rcx
je 0x140033217
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x78], r15
movzx eax, bl
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140025ac0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret