Function at 0x18000e470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x180776070]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x18000e4b3
cmp byte [rax + 1], 0
je 0x18000e4b3
mov byte [rcx + 0x18], 0
mov rcx, qword [rax + 0x58]
call fcn.180031ed0
mov rax, qword [0x180776070]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3d90]
test rcx, rcx
je 0x18000e4ec
mov qword [rdi + 0x3d88], r12
test rax, rax
je 0x18000e4d8
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d90], r12
mov rax, qword [0x180776070]
cmp byte [rdi], r12b
je 0x18000ed11
cmp byte [rdi + 0x5df0], r12b
je 0x18000e556
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x18000e556
mov dword [rax + 0x5df4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.180024be0
mov rsi, rax
lea rdx, [0x180119034]
mov rcx, rbx
call fcn.18000b310
mov rbx, rax
test rax, rax
je 0x18000e556
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.1800276a0
mov esi, r12d
cmp dword [rdi + 0x5db0], r12d
jle 0x18000e5b2
mov rbp, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x5db8]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x18000e5a4
mov rcx, rbx
call fcn.180028f20
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e59b
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x5db0]
jl 0x18000e570
mov ebx, r12d
cmp dword [rdi + 0x5e38], r12d
jle 0x18000e5f1
mov rsi, r12
mov rcx, qword [rdi + 0x5e40]
cmp dword [rsi + rcx + 4], 6
jne 0x18000e5e3
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5e38]
jl 0x18000e5c1
mov esi, r12d
cmp dword [rdi + 0x3fb8], r12d
jle 0x18000e641
mov r14, r12
mov rax, qword [rdi + 0x3fc0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x18000e633
mov rcx, rbx
call fcn.18000f2e0
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e62a
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3fb8]
jl 0x18000e600
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x18000e673
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e666
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x18000e6a5
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e698
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x18000e6d7
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e6ca
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov qword [rdi + 0x4018], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x18000e710
mov qword [rdi + 0x3fe8], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e703
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff0], r12
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x18000e742
mov qword [rdi + 0x3ff8], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e735
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x4a78], r12
mov qword [rdi + 0x4028], r12
mov qword [rdi + 0x4020], r12
mov qword [rdi + 0x40b0], r12
mov qword [rdi + 0x4098], r12
mov qword [rdi + 0x4030], r12
lea rcx, [rdi + 0x4750]
call fcn.1800093b0
mov rcx, qword [rdi + 0x4988]
test rcx, rcx
je 0x18000e7aa
mov qword [rdi + 0x4980], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e79d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4988], r12
mov rcx, qword [rdi + 0x4998]
test rcx, rcx
je 0x18000e7dc
mov qword [rdi + 0x4990], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e7cf
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4998], r12
mov rcx, qword [rdi + 0x49a8]
test rcx, rcx
je 0x18000e80e
mov qword [rdi + 0x49a0], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e801
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49a8], r12
mov rcx, qword [rdi + 0x49e8]
test rcx, rcx
je 0x18000e840
mov qword [rdi + 0x49e0], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e833
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49e8], r12
mov rcx, qword [rdi + 0x49f8]
test rcx, rcx
je 0x18000e872
mov qword [rdi + 0x49f0], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e865
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49f8], r12
mov qword [rdi + 0x4a30], r12
mov qword [rdi + 0x4a28], r12
mov qword [rdi + 0x4a20], r12
mov ebx, r12d
cmp dword [rdi + 0x4a08], r12d
jle 0x18000e8be
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x4a10]
mov rcx, qword [rsi + rcx]
call fcn.180032020
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x4a08]
jl 0x18000e8a0
mov rcx, qword [rdi + 0x4a10]
test rcx, rcx
je 0x18000e8f0
mov qword [rdi + 0x4a08], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e8e3
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a10], r12
lea rcx, [rdi + 0x4d68]
call fcn.180030e40
mov rcx, qword [rdi + 0x4d98]
test rcx, rcx
je 0x18000e92e
mov qword [rdi + 0x4d90], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e921
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d98], r12
mov rcx, qword [rdi + 0x4da8]
test rcx, rcx
je 0x18000e960
mov qword [rdi + 0x4da0], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e953
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4da8], r12
mov ebx, r12d
cmp dword [rdi + 0x4ce8], r12d
jle 0x18000e9a8
mov rsi, r12
nop
mov rax, qword [rdi + 0x4cf0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x18000e99a
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e993
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4ce8]
jl 0x18000e970
mov rcx, qword [rdi + 0x4cf0]
test rcx, rcx
je 0x18000e9da
mov qword [rdi + 0x4ce8], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000e9cd
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cf0], r12
lea rcx, [rdi + 0x4d18]
call fcn.180030fc0
mov esi, r12d
cmp dword [rdi + 0x4d08], r12d
jle 0x18000ea45
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4d10]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.18003ceb0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x18000ea37
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ea30
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4d08]
jl 0x18000ea00
mov rcx, qword [rdi + 0x4d10]
test rcx, rcx
je 0x18000ea77
mov qword [rdi + 0x4d08], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ea6a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d10], r12
mov rcx, qword [rdi + 0x4d58]
test rcx, rcx
je 0x18000eaa9
mov qword [rdi + 0x4d50], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ea9c
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d58], r12
mov rcx, qword [rdi + 0x5d70]
test rcx, rcx
je 0x18000eadb
mov qword [rdi + 0x5d68], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000eace
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d70], r12
mov rcx, qword [rdi + 0x5d80]
test rcx, rcx
je 0x18000eb0d
mov qword [rdi + 0x5d78], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000eb00
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d80], r12
mov rcx, qword [rdi + 0x4de8]
test rcx, rcx
je 0x18000eb3f
mov qword [rdi + 0x4de0], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000eb32
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4de8], r12
mov rcx, qword [rdi + 0x4df8]
test rcx, rcx
je 0x18000eb71
mov qword [rdi + 0x4df0], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000eb64
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4df8], r12
mov rcx, qword [rdi + 0x4e08]
test rcx, rcx
je 0x18000eba3
mov qword [rdi + 0x4e00], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000eb96
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e08], r12
mov dword [rdi + 0x5c58], r12d
mov rcx, qword [rdi + 0x5c68]
test rcx, rcx
je 0x18000ebdc
mov qword [rdi + 0x5c60], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ebcf
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c68], r12
mov rcx, qword [rdi + 0x5e20]
test rcx, rcx
je 0x18000ec0e
mov qword [rdi + 0x5e18], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ec01
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e20], r12
mov rcx, qword [rdi + 0x5e10]
test rcx, rcx
je 0x18000ec40
mov qword [rdi + 0x5e08], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ec33
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e10], r12
cmp qword [rdi + 0x5e98], 0
je 0x18000ec71
mov rbx, qword [rdi + 0x5e98]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x18000ec6a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5e98], r12
mov rcx, qword [rdi + 0x5ea8]
test rcx, rcx
je 0x18000eca3
mov qword [rdi + 0x5ea0], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ec96
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ea8], r12
mov rcx, qword [rdi + 0x5ee0]
test rcx, rcx
je 0x18000ecd5
mov qword [rdi + 0x5ed8], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ecc8
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ee0], r12
mov rcx, qword [rdi + 0x5ef0]
test rcx, rcx
je 0x18000ed07
mov qword [rdi + 0x5ee8], r12
mov rax, qword [0x180776070]
test rax, rax
je 0x18000ecfa
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ef0], r12
mov dword [rdi + 0x5ef8], r12d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret