Function at 0x180013620
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0x2d8], rbx
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14, r8
mov rsi, rdx
mov rbx, rcx
lea rdx, [rsp + 0x120]
call fcn.180011470
nop
cmp qword [rsp + 0x130], 0
ja 0x18001369f
mov r8, qword [rsp + 0x138]
cmp r8, 8
jb 0x18001369a
inc r8
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x120]
call fcn.180003e80
jmp 0x180013d69
lea rcx, [rsp + 0x1d0]
call fcn.18001f380
nop
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180028f40
nop
lea rdx, [rbx + 0xa0]
mov r9b, 1
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x1d0]
call fcn.180025740
test al, al
je 0x180013cc5
cmp qword [rsi + 0x18], 8
jb 0x1800136e8
mov rsi, qword [rsi]
mov qword [rsp + 0xd8], 7
xor edi, edi
mov qword [rsp + 0xd0], rdi
mov word [rsp + 0xc0], di
or rbx, 0xffffffffffffffff
cmp word [rsi], di
jne 0x180013714
mov r8d, edi
jmp 0x18001372a
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], di
jne 0x180013720
mov rdx, rsi
lea rcx, [rsp + 0xc0]
call fcn.180008a90
nop
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa0]
call fcn.18003c810
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180028e40
nop
lea rdx, str.gmedr
lea rcx, [rsp + 0x48]
call fcn.180029830
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.180029410
nop
lea rcx, [rsp + 0x70]
call fcn.180029230
nop
mov rax, qword [rsp + 0xb8]
cmp rax, 0x10
jb 0x1800137ea
inc rax
mov rcx, qword [rsp + 0xa0]
cmp rax, 0x1000
jb 0x1800137e5
test cl, 0x1f
je 0x1800137b8
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800137c7
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800137d6
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x1800137e2
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rsp + 0xb8], 0xf
mov qword [rsp + 0xb0], rdi
mov byte [rsp + 0xa0], 0
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x18001382c
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.180003e80
cmp qword [r14 + 0x18], 8
jb 0x180013836
mov r14, qword [r14]
mov qword [rsp + 0xd8], 7
mov qword [rsp + 0xd0], rdi
mov word [rsp + 0xc0], di
cmp word [r14], 0
jne 0x180013860
mov rbx, rdi
jmp 0x18001386b
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x180013860
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0xc0]
call fcn.180008a90
nop
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa0]
call fcn.18003c810
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180028e40
nop
lea rdx, str.gmefn
lea rcx, [rsp + 0x48]
call fcn.180029830
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.180029410
nop
lea rcx, [rsp + 0x70]
call fcn.180029230
nop
mov rax, qword [rsp + 0xb8]
cmp rax, 0x10
jb 0x18001392e
inc rax
mov rcx, qword [rsp + 0xa0]
cmp rax, 0x1000
jb 0x180013929
test cl, 0x1f
je 0x1800138fc
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18001390b
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x18001391a
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180013926
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rsp + 0xb8], 0xf
mov qword [rsp + 0xb0], rdi
mov byte [rsp + 0xa0], 0
mov r8, qword [rsp + 0xd8]
cmp r8, 8
jb 0x180013970
inc r8
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xc0]
call fcn.180003e80
lea rcx, [rsp + 0x160]
call fcn.18002c050
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x160]
call fcn.18002cfc0
nop
mov edx, 1
lea rcx, [rsp + 0x190]
call fcn.180035010
nop
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x190]
call fcn.1800359f0
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.1800107b0
mov rax, qword [rsp + 0xb8]
cmp rax, 0x10
jb 0x180013a37
inc rax
mov rcx, qword [rsp + 0xa0]
cmp rax, 0x1000
jb 0x180013a32
test cl, 0x1f
je 0x180013a05
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180013a14
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180013a23
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180013a2f
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rsp + 0x158], 0xf
mov qword [rsp + 0x150], rdi
mov byte [rsp + 0x140], 0
xor r8d, r8d
lea rdx, [0x180090018]
lea rcx, [rsp + 0x140]
call fcn.18000e1e0
nop
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 0x10
cmovae rdx, qword [rsp + 0xe0]
mov r8d, dword [rsp + 0xf0]
lea rcx, [rsp + 0x100]
call fcn.18000e8c0
lea rcx, [rsp + 0x120]
cmp qword [rsp + 0x138], 8
cmovae rcx, qword [rsp + 0x120]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x180013b20
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x100]
cmp qword [rsp + 0x118], 0x10
cmovae rdx, qword [rsp + 0x100]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x110]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x118]
cmp rax, 0x10
jb 0x180013b7e
inc rax
mov rcx, qword [rsp + 0x100]
cmp rax, 0x1000
jb 0x180013b79
test cl, 0x1f
je 0x180013b4c
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180013b5b
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180013b6a
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180013b76
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rsp + 0x118], 0xf
mov qword [rsp + 0x110], rdi
mov byte [rsp + 0x100], 0
mov rax, qword [rsp + 0x158]
cmp rax, 0x10
jb 0x180013bf8
inc rax
mov rcx, qword [rsp + 0x140]
cmp rax, 0x1000
jb 0x180013bf3
test cl, 0x1f
je 0x180013bc6
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180013bd5
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180013be4
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180013bf0
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rsp + 0x158], 0xf
mov qword [rsp + 0x150], rdi
mov byte [rsp + 0x140], 0
lea rcx, [rsp + 0x1b0]
call fcn.18000d830
lea rcx, [rsp + 0x190]
call fcn.18000d830
nop
mov rax, qword [rsp + 0xf8]
cmp rax, 0x10
jb 0x180013c8d
inc rax
mov rcx, qword [rsp + 0xe0]
cmp rax, 0x1000
jb 0x180013c88
test cl, 0x1f
je 0x180013c5b
call fcn.1800625e0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180013c6a
call fcn.1800625e0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180013c79
call fcn.1800625e0
int3
cmp rcx, 0x27
jbe 0x180013c85
call fcn.1800625e0
int3
mov rcx, rax
call fcn.18003f87c
mov qword [rsp + 0xf8], 0xf
mov qword [rsp + 0xf0], rdi
mov byte [rsp + 0xe0], 0
lea rcx, [rsp + 0x168]
call fcn.18000d830
lea rcx, [rsp + 0x160]
call fcn.18002c080
jmp 0x180013cc7
xor edi, edi
lea rcx, [rsp + 0x48]
call fcn.180029230
nop
lea rcx, [rsp + 0x268]
call fcn.18000d830
lea rcx, [rsp + 0x220]
call fcn.18000d830
lea rcx, [rsp + 0x1f8]
call fcn.180014aa0
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, qword [rsp + 0x1f8]
call fcn.180002a40
mov qword [rsp + 0x1f8], rdi
lea rcx, [rsp + 0x1d0]
call fcn.1800149b0
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, qword [rsp + 0x1d0]
call fcn.180002a40
mov qword [rsp + 0x1d0], rdi
mov r8, qword [rsp + 0x138]
cmp r8, 8
jb 0x180013d69
inc r8
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x120]
call fcn.180003e80
nop
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.18003ff90
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
ret