Function at 0x180028680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x180059e80]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0x128]
call fcn.1800103f0
movzx eax, al
test eax, eax
je 0x1800286d3
xor eax, eax
jmp 0x180028c34
mov rax, qword [rsp + 0x110]
add rax, 0x30
mov rcx, rax
call fcn.1800103f0
movzx eax, al
test eax, eax
je 0x1800286f5
xor eax, eax
jmp 0x180028c34
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x110]
call fcn.180028480
movzx eax, al
test eax, eax
jne 0x180028818
cmp qword [0x18005ccf0], 0
je 0x180028786
mov rax, qword [0x18005ccf0]
cmp qword [rax + 0x1c8], 0
je 0x180028786
mov rax, qword [rsp + 0x110]
add rax, 0x30
mov rcx, rax
call fcn.1800072d0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [0x18005ccf0]
call qword [rax + 0x1c8]
mov qword [rsp + 0x58], rax
jmp 0x1800287a7
lea r8, [0x18005b9c8]
lea rdx, [0x18005b9e0]
mov ecx, 4
call fcn.1800284e0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x110]
call fcn.180028480
movzx eax, al
test eax, eax
jne 0x1800287df
xor eax, eax
jmp 0x180028c34
mov rax, qword [rsp + 0x110]
add rax, 0x30
mov rcx, rax
call fcn.1800072d0
mov rcx, rax
call fcn.1800142e0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.180029740
mov rcx, qword [rsp + 0x110]
sub rax, qword [rcx + 0x70]
xor edx, edx
mov ecx, 0x2710
div rcx
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x40], 0
mov edx, 1
lea rcx, [rsp + 0xe0]
call fcn.180014b40
lea rcx, [rsp + 0xe0]
call fcn.180006980
nop
mov dword [rsp + 0xd8], 0
mov rcx, qword [rsp + 0x120]
call fcn.180027d00
mov r9d, 8
mov r8b, 0x10
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.180026570
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x118]
add eax, 0x30
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x110]
add rcx, 0x18
mov qword [rsp + 0x98], rcx
mov r9d, 8
mov r8b, 0x10
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0xa8]
call fcn.180026570
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xe0]
call fcn.18000fda0
mov dx, 0x3a
mov rcx, rax
call fcn.180029450
mov rcx, qword [rsp + 0x98]
mov rdx, rcx
mov rcx, rax
call fcn.18000fda0
mov dx, 0x3a
mov rcx, rax
call fcn.180029450
mov ecx, dword [rsp + 0x48]
movzx edx, cx
mov rcx, rax
call fcn.180029450
mov dx, 0x3a
mov rcx, rax
call fcn.180029450
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.18000fda0
mov dx, 0x3a
mov rcx, rax
call fcn.180029450
mov rdx, qword [rsp + 0x128]
mov rcx, rax
call fcn.18000fda0
mov r8, 0xffffffffffffffff
lea rdx, [0x18005ba38]
mov rcx, rax
call fcn.18000fdf0
nop
lea rcx, [rsp + 0xa8]
call fcn.180011170
nop
lea rcx, [rsp + 0xc0]
call fcn.180011170
mov r8d, 0x3e8
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x110]
call fcn.180029340
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
je 0x180028a06
cmp dword [rsp + 0x44], 0x2faf080
jbe 0x180028a06
mov rcx, qword [rsp + 0x110]
call fcn.1800290b0
lea rcx, [rsp + 0xe0]
call fcn.180030720
shl rax, 1
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xe0]
call fcn.1800072c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd8]
mov rcx, qword [rsp + 0x70]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180028a73
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [rsp + 0x40], 0
je 0x180028a9e
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x110]
call fcn.180028480
movzx eax, al
test eax, eax
jne 0x180028c02
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x110]
call fcn.180028480
movzx eax, al
test eax, eax
je 0x180028ad0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [0x18005ccf0], 0
je 0x180028b3d
mov rax, qword [0x18005ccf0]
cmp qword [rax + 0x1c8], 0
je 0x180028b3d
mov rax, qword [rsp + 0x110]
add rax, 0x30
mov rcx, rax
call fcn.1800072c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [0x18005ccf0]
call qword [rax + 0x1c8]
mov qword [rsp + 0x60], rax
jmp 0x180028b5e
lea r8, str.CreateFile
lea rdx, str.CEventLogger::LogToFile:__dlsys___s_is_null
mov ecx, 4
call fcn.1800284e0
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x60], rcx
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rsp + 0x110]
add rax, 0x30
mov rcx, rax
call fcn.1800072d0
mov rcx, rax
call fcn.1800142e0
lea rcx, [rsp + 0xe0]
call fcn.180030720
shl rax, 1
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xe0]
call fcn.1800072c0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd8]
mov rcx, qword [rsp + 0x80]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x110]
call fcn.180029300
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0xe0]
call fcn.180011170
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1800326e0
add rsp, 0x108
ret