Function at 0x180130640
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x88], 0x80004021
mov dword [rsp + 0x60], 0x78
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
lea r8, [0x18005f6c8]
lea rdx, [0x180064840]
mov ecx, 1
call fcn.1801276b0
mov rdx, qword [rsp + 0xb0]
add rdx, 8
lea rcx, [rsp + 0x90]
call fcn.180131df0
lea rcx, [rsp + 0x90]
call fcn.180131e30
nop
mov r9, qword [rsp + 0xb8]
lea r8, [0x180064818]
lea rdx, [0x180064840]
mov ecx, 2
call fcn.1801276b0
mov r11d, dword [rsp + 0xc0]
mov dword [rsp + 0x20], r11d
mov r9d, dword [rsp + 0xc0]
lea r8, [0x180060fe0]
lea rdx, [0x180064840]
mov ecx, 2
call fcn.1801276b0
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x240]
cmp eax, 1
jne 0x1801308b6
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x258]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1801307df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov ecx, dword [rsp + 0x60]
call fcn.180094b00
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
mov r9, qword [r9 + 0x258]
lea r8, [0x1800645c0]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180130c2f
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x70], eax
je 0x180130876
mov dword [rsp + 0x60], 0x3e4
mov ecx, dword [rsp + 0x60]
call fcn.180094b00
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
mov r9, qword [r9 + 0x258]
lea r8, [0x18005fcd0]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180130c2f
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x250]
add ecx, dword [rsp + 0xc0]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x250], ecx
mov dword [rsp + 0x60], 0
mov ecx, dword [rsp + 0x60]
call fcn.180094b00
mov dword [rsp + 0x88], eax
jmp 0x180130c2f
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x30], 0
jne 0x180130904
mov dword [rsp + 0x60], 0x548
mov ecx, dword [rsp + 0x60]
call fcn.180094b00
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x60]
lea r8, [0x1800647d0]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180130c2f
mov edx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x180130972
mov dword [rsp + 0x60], 0x57
mov ecx, dword [rsp + 0x60]
call fcn.180094b00
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb8]
lea r8, [0x180060998]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180130c2f
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rax]
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0xc0]
call qword [rax + 0x68]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jge 0x1801309f4
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc0]
lea r8, [0x180064780]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180130c2f
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x30]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jge 0x180130a54
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x78]
lea r8, [0x1800627c0]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180130c2f
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
call fcn.1800eb460
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov edx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x20]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jge 0x180130ad3
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xc0]
lea r8, [0x180064740]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180130c2f
mov r8, qword [rsp + 0xb0]
mov r8, qword [r8 + 0x248]
imul r8, r8, 0x2710
mov r10, qword [rsp + 0xb0]
mov r10, qword [r10 + 0x30]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x30]
mov r10, qword [r10]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [rsp + 0xb0]
mov edx, dword [rax + 0x244]
call qword [r10 + 0x70]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jge 0x180130b9d
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x248]
imul rcx, rcx, 0x2710
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax + 0x244]
lea r8, [0x1800646f0]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180130c2f
mov eax, dword [rsp + 0xc0]
imul rax, rax, 0x3e8
cqo
mov ecx, 0x2b110
idiv rcx
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x248]
add rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0x248], rcx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb0]
mov r9, qword [r9 + 0x248]
lea r8, [0x1800646b8]
lea rdx, [0x180064840]
mov ecx, 3
call fcn.1801276b0
mov dword [rsp + 0x60], 0
mov ecx, dword [rsp + 0x60]
call fcn.180094b00
mov dword [rsp + 0x88], eax
cmp qword [rsp + 0x68], 0
je 0x180130c50
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x10]
mov qword [rsp + 0x68], 0
jmp 0x180130c97
cmp dword [rsp + 0x60], 0
jne 0x180130cb8
lea r8, [0x18005f618]
lea rdx, [0x180064840]
mov ecx, 1
call fcn.1801276b0
jmp 0x180130cda
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x60]
lea r8, [0x180061970]
lea rdx, [0x180064840]
xor ecx, ecx
call fcn.1801276b0
mov eax, dword [rsp + 0x88]
add rsp, 0xa8
ret