Function at 0x140032d40
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov rax, qword [0x14009e018]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x88], r9
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xe8], rdx
mov r14, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x100], rcx
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x68], rax
lea rsi, [rcx + 0x10]
mov qword [r11 - 0x80], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor eax, eax
mov r13d, eax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov rax, qword [r14 + 0x38]
mov rax, qword [rax]
mov rdi, qword [r14 + 0x38]
cmp rax, rdi
je 0x140033404
nop
mov rdx, qword [rax + 0x28]
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x140032df0
inc rcx
mov rdx, qword [rdx + 0x109]
add rdx, rcx
add r13, 6
add r13, rdx
cmp byte [rax + 0x19], 0
jne 0x140032e5e
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x140032e3e
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x140032e5e
nop word [rax + rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140032e30
jmp 0x140032e5e
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x140032e5b
cmp rax, qword [rcx + 0x10]
jne 0x140032e5b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x140032e48
mov rax, rcx
cmp rax, rdi
jne 0x140032de0
test r13, r13
je 0x140033404
mov r8, r13
xor edx, edx
mov rcx, qword [r14 + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov qword [rsp + 0x108], rax
mov r15, rax
mov rbx, qword [r14 + 0x38]
mov rbx, qword [rbx]
cmp rbx, rdi
je 0x140032f2c
nop dword [rax]
mov r14, qword [rbx + 0x28]
mov r8, r14
mov rdx, r15
call fcn.140033440
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], 0
jne 0x140032eb3
inc rax
mov rcx, qword [r14 + 0x109]
add rcx, rax
add r15, 6
add r15, rcx
cmp byte [rbx + 0x19], 0
jne 0x140032f1e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140032efe
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140032f1e
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140032ef0
jmp 0x140032f1e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140032f1b
cmp rbx, qword [rax + 0x10]
jne 0x140032f1b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140032f08
mov rbx, rax
cmp rbx, rdi
jne 0x140032ea0
mov r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, r13
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.140031de0
nop
mov dword [rsp + 0x118], 0x614e6458
mov rdx, qword [rsp + 0x1a0]
mov rax, rdx
shr rax, 3
mov byte [rsp + 0x124], al
mov rcx, qword [rsp + 0x80]
lea eax, [rcx + rdx]
mov dword [rsp + 0x120], eax
add eax, eax
mov dword [rsp + 0x11c], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rcx
lea r13, [rcx + rdx]
mov r8, r13
xor edx, edx
mov rcx, qword [r14 + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x140033342
mov r14, rax
lea rdi, [rsp + 0x88]
mov r15d, 2
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, r14
call fcn.140053ea0
add r14, qword [rdi + 8]
lea rdi, [rdi + 0x10]
sub r15, 1
jne 0x140032ff0
mov r8d, dword [rsp + 0x11c]
xor edx, edx
mov r15, qword [rsp + 0x60]
mov rcx, qword [r15 + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x140033088
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140033045
call fcn.140055a68
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140033074
mov eax, 0xfe129987
xor rbx, rax
je 0x140033074
cmp dword [rbx], eax
jne 0x140033074
lea rcx, [rbx + 8]
call fcn.14004a6c0
mov edx, 0x158
mov rcx, rbx
call fcn.140051af0
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010003
jmp 0x140033413
mov qword [rsp + 0x88], 5
mov eax, dword [rsp + 0x11c]
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rsp + 0xdc], rax
mov qword [rsp + 0xd4], 0xffffffffffffffff
mov dword [rsp + 0xcc], 0xffffffff
mov dword [rsp + 0xb8], 5
mov dword [rsp + 0xbc], 0x1000000
mov qword [rsp + 0xc0], 3
mov dword [rsp + 0xc8], 2
mov dword [rsp + 0xd0], 0x20
mov dword [rsp + 0xe4], 1
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x125]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, r12
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140019030
test eax, eax
je 0x14003319b
or eax, 0xe0020000
jge 0x14003319b
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140033158
call fcn.140055a68
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140033187
mov eax, 0xfe129987
xor rbx, rax
je 0x140033187
cmp dword [rbx], eax
jne 0x140033187
lea rcx, [rbx + 8]
call fcn.14004a6c0
mov edx, 0x158
mov rcx, rbx
call fcn.140051af0
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010001
jmp 0x140033413
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x11c], eax
lea rax, vtable.XFileIO.0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 0xffffffffffffffff
mov r8d, 1
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x88]
call fcn.1400319f0
mov r14d, eax
test eax, eax
jns 0x140033248
mov rcx, qword [rsp + 0x90]
cmp rcx, 0xffffffffffffffff
je 0x1400331f8
call qword [0x1400692d0]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140033207
call fcn.140055a68
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140033236
mov eax, 0xfe129987
xor rbx, rax
je 0x140033236
cmp dword [rbx], eax
jne 0x140033236
lea rcx, [rbx + 8]
call fcn.14004a6c0
mov edx, 0x158
mov rcx, rbx
call fcn.140051af0
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, r14d
jmp 0x140033413
or rax, 0xffffffffffffffff
mov rdx, qword [rsp + 0xf0]
lea rax, [rax + 1]
cmp byte [rdx + rax], 0
jne 0x140033254
lea r8, [rax + 1]
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov rbx, qword [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x1e]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
lea r8d, [r14 + 0x12]
lea rdx, [rsp + 0x118]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x11c]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rbx, 0xffffffffffffffff
je 0x1400332f2
mov rcx, rbx
call qword [0x1400692d0]
or rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x140033302
mov rcx, rbx
call qword [0x1400692d0]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140033311
call fcn.140055a68
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140033340
mov eax, 0xfe129987
xor rbx, rax
je 0x140033340
cmp dword [rbx], eax
jne 0x140033340
lea rcx, [rbx + 8]
call fcn.14004a6c0
mov edx, 0x158
mov rcx, rbx
call fcn.140051af0
nop
jmp 0x1400333b4
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140033351
call fcn.140055a68
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140033380
mov eax, 0xfe129987
xor rbx, rax
je 0x140033380
cmp dword [rbx], eax
jne 0x140033380
lea rcx, [rbx + 8]
call fcn.14004a6c0
mov edx, 0x158
mov rcx, rbx
call fcn.140051af0
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010003
jmp 0x140033413
test rdi, rdi
je 0x1400333c8
mov r8, rdi
xor edx, edx
mov rcx, qword [r15 + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x1400333dc
mov r8, r12
xor edx, edx
mov rcx, qword [r15 + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x108]
test r8, r8
je 0x1400333f6
xor edx, edx
mov rcx, qword [r15 + 0x48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
xor eax, eax
jmp 0x140033413
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, 0xe0010002
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140051aa0
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret