Function at 0x100019380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x198
mov qword [rsp + 0x148], 0xfffffffffffffffe
mov dword [rsp + 0xb8], 0x18
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0x98], 0x100
mov dword [rsp + 0x9c], 0x400
mov dword [rsp + 0xa0], 0x1000
mov dword [rsp + 0x94], 3
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x1b0]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x100019426
mov al, 1
jmp 0x100019a23
cmp qword [rsp + 0x1c8], 0
jne 0x100019438
xor al, al
jmp 0x100019a23
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x90], 0
jmp 0x100019466
mov eax, dword [rsp + 0x90]
add eax, 1
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x94]
cmp dword [rsp + 0x90], eax
jae 0x100019576
mov eax, dword [rsp + 0x90]
mov eax, dword [rsp + rax*4 + 0x98]
mov qword [rsp + 0x150], rax
mov eax, 2
mov rcx, qword [rsp + 0x150]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.100022574
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1000194f9
lea rcx, [0x1000163a0]
call fcn.100023520
xor al, al
jmp 0x100019a23
mov eax, dword [rsp + 0x90]
mov eax, dword [rsp + rax*4 + 0x98]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.1000232b0
mov eax, dword [rsp + 0x90]
mov eax, dword [rsp + rax*4 + 0x98]
mov r9, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x1c8]
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.100023608
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], 0
jge 0x10001956f
call fcn.100023728
mov rcx, qword [rsp + 0x80]
call fcn.100023694
jmp 0x100019571
jmp 0x100019576
jmp 0x100019455
mov qword [rsp + 0xf0], 0
mov eax, dword [rsp + 0x94]
cmp dword [rsp + 0x90], eax
jne 0x100019646
lea rcx, [0x1000163c0]
call fcn.1000234a4
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
add rax, 1
mov qword [rsp + 0x160], rax
mov eax, 2
mov rcx, qword [rsp + 0x160]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.100022574
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x10001961b
xor al, al
jmp 0x100019a23
mov rax, qword [rsp + 0x88]
add rax, 1
mov r9, qword [rsp + 0x88]
lea r8, [0x1000163c0]
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.100023910
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rcx, qword [rsp + 0x1b8]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.1000234a4
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x80]
call fcn.1000234a4
mov qword [rsp + 0x178], rax
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x20]
call fcn.1000234a4
mov rcx, qword [rsp + 0x178]
add rax, rcx
mov rcx, qword [rsp + 0x170]
lea rax, [rax + rcx + 0x3a]
mov qword [rsp + 0x88], rax
mov eax, 2
mul qword [rsp + 0x88]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.100022574
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0xe0], 0
jne 0x10001971f
xor al, al
jmp 0x100019a23
mov rax, qword [rsp + 0x88]
shl rax, 1
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call fcn.1000232b0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x188], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsp + 0xb6]
movzx edx, word [rsp + 0xb4]
movzx r8d, word [rsp + 0xb2]
movzx r9d, word [rsp + 0xb0]
movzx r10d, word [rsp + 0xae]
movzx r11d, word [rsp + 0xaa]
movzx ebx, word [rsp + 0xa8]
mov edi, dword [rsp + 0x1c0]
mov dword [rsp + 0x78], edi
mov rdi, qword [rsp + 0xd0]
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x68], rdi
mov rdi, qword [rsp + 0x1b0]
mov rdi, qword [rdi + 0x20]
mov qword [rsp + 0x60], rdi
mov edi, dword [rsp + 0x188]
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
mov r9d, ebx
lea r8, [0x100016440]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xe0]
call fcn.100023670
movzx eax, word [rsp + 0xa8]
movzx ecx, word [rsp + 0xaa]
imul ecx, ecx, 0x2710
movzx edx, word [rsp + 0xae]
imul edx, edx, 0xf4240
add edx, ecx
mov ecx, edx
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x1b0]
cmp dword [rcx + 0x34], eax
je 0x1000198cd
mov rax, qword [rsp + 0x1b0]
add rax, 0x10
mov rdx, rax
mov rcx, qword [rsp + 0x1b0]
call fcn.100019b10
mov byte [rsp + 0x18c], al
movzx eax, byte [rsp + 0x18c]
test eax, eax
jne 0x100019896
mov dword [rsp + 0x118], 1
lea rdx, [0x100034080]
lea rcx, [rsp + 0x118]
call fcn.100024858
movzx eax, word [rsp + 0xa8]
movzx ecx, word [rsp + 0xaa]
imul ecx, ecx, 0x2710
movzx edx, word [rsp + 0xae]
imul edx, edx, 0xf4240
add edx, ecx
mov ecx, edx
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x1b0]
mov dword [rcx + 0x34], eax
jmp 0x1000198db
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x10], 0
jne 0x1000198f1
xor al, al
jmp 0x100019a23
mov rcx, qword [rsp + 0x1b0]
call fcn.10001a550
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xb8]
mov r8d, 1
mov edx, 0x40000000
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0xffffffffffffffff
jne 0x100019977
mov rcx, qword [rsp + 0x1b0]
call fcn.10001a590
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1000164c8]
call fcn.100023520
xor al, al
jmp 0x100019a23
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0xe0]
call fcn.1000234a4
mov eax, eax
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd8]
mov r8d, eax
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1b0]
call fcn.10001a590
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x138], rax
mov rcx, qword [rsp + 0x138]
call fcn.100022568
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.100022568
mov al, 1
add rsp, 0x198
pop rdi
pop rbx
ret