Function at 0x180007b50
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 [0x1800ebe10]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x180007bb6
cmp byte [rax + 1], 0
je 0x180007bb6
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x180007bb6
mov rcx, rbx
call fcn.180078080
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007ba6
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1800ebe10]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3d78]
test rcx, rcx
je 0x180007bef
mov qword [rdi + 0x3d70], r12
test rax, rax
je 0x180007bdb
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d78], r12
mov rax, qword [0x1800ebe10]
cmp byte [rdi], r12b
je 0x180008478
cmp byte [rdi + 0x5d58], r12b
je 0x180007c59
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x180007c59
mov dword [rax + 0x5d5c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.18001f960
mov rsi, rax
lea rdx, [0x1800bc898]
mov rcx, rbx
call fcn.180002d10
mov rbx, rax
test rax, rax
je 0x180007c59
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.180021f60
mov esi, r12d
cmp dword [rdi + 0x5d20], r12d
jle 0x180007cb2
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5d28]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x180007ca4
mov rcx, rbx
call fcn.180023ae0
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007c9b
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 + 0x5d20]
jl 0x180007c70
mov ebx, r12d
cmp dword [rdi + 0x5da0], r12d
jle 0x180007cf1
mov rsi, r12
mov rcx, qword [rdi + 0x5da8]
cmp dword [rsi + rcx + 4], 6
jne 0x180007ce3
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 + 0x5da0]
jl 0x180007cc1
mov esi, r12d
cmp dword [rdi + 0x3f78], r12d
jle 0x180007d41
mov r14, r12
mov rax, qword [rdi + 0x3f80]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x180007d33
mov rcx, rbx
call fcn.180008a30
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007d2a
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 + 0x3f78]
jl 0x180007d00
mov rcx, qword [rdi + 0x3f80]
test rcx, rcx
je 0x180007d73
mov qword [rdi + 0x3f78], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007d66
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f80], r12
mov rcx, qword [rdi + 0x3f90]
test rcx, rcx
je 0x180007da5
mov qword [rdi + 0x3f88], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007d98
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f90], r12
mov rcx, qword [rdi + 0x3fa0]
test rcx, rcx
je 0x180007dd7
mov qword [rdi + 0x3f98], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007dca
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fa0], r12
mov qword [rdi + 0x3fd8], r12
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x180007e10
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007e03
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb0], r12
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x180007e42
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007e35
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov qword [rdi + 0x4a28], r12
mov qword [rdi + 0x3fe8], r12
mov qword [rdi + 0x3fe0], r12
mov qword [rdi + 0x4070], r12
mov qword [rdi + 0x4058], r12
mov qword [rdi + 0x3ff0], r12
lea rcx, [rdi + 0x4710]
call fcn.1800012e0
mov rcx, qword [rdi + 0x4948]
test rcx, rcx
je 0x180007eaa
mov qword [rdi + 0x4940], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007e9d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4948], r12
mov rcx, qword [rdi + 0x4958]
test rcx, rcx
je 0x180007edc
mov qword [rdi + 0x4950], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007ecf
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4958], r12
mov rcx, qword [rdi + 0x4968]
test rcx, rcx
je 0x180007f0e
mov qword [rdi + 0x4960], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007f01
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4968], r12
mov rcx, qword [rdi + 0x49a8]
test rcx, rcx
je 0x180007f40
mov qword [rdi + 0x49a0], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007f33
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 + 0x49b8]
test rcx, rcx
je 0x180007f72
mov qword [rdi + 0x49b0], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007f65
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b8], r12
mov qword [rdi + 0x49f0], r12
mov qword [rdi + 0x49e8], r12
mov qword [rdi + 0x49e0], r12
mov ebp, r12d
cmp dword [rdi + 0x49c8], r12d
jle 0x18000805d
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x49d0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x18000804b
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x180007fe3
mov rcx, rsi
call fcn.180001040
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180007fda
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x180008013
mov rcx, rsi
call fcn.180001040
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180008009
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0xe0]
lea r9, [0x180037bc0]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.1800b8dc4
nop
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180008042
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x49c8]
jl 0x180007fa0
mov rcx, qword [rdi + 0x49d0]
test rcx, rcx
je 0x18000808f
mov qword [rdi + 0x49c8], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180008082
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49d0], r12
lea rcx, [rdi + 0x4d00]
call fcn.180037f00
mov rcx, qword [rdi + 0x4d30]
test rcx, rcx
je 0x1800080cd
mov qword [rdi + 0x4d28], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x1800080c0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d30], r12
mov rcx, qword [rdi + 0x4d40]
test rcx, rcx
je 0x1800080ff
mov qword [rdi + 0x4d38], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x1800080f2
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d40], r12
mov ebx, r12d
cmp dword [rdi + 0x4c80], r12d
jle 0x180008148
mov rsi, r12
nop
mov rax, qword [rdi + 0x4c88]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x18000813a
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180008133
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 + 0x4c80]
jl 0x180008110
mov rcx, qword [rdi + 0x4c88]
test rcx, rcx
je 0x18000817a
mov qword [rdi + 0x4c80], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x18000816d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c88], r12
lea rcx, [rdi + 0x4cb0]
call fcn.180038070
mov esi, r12d
cmp dword [rdi + 0x4ca0], r12d
jle 0x1800081e5
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4ca8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.180077520
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1800081d7
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x1800081d0
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 + 0x4ca0]
jl 0x1800081a0
mov rcx, qword [rdi + 0x4ca8]
test rcx, rcx
je 0x180008217
mov qword [rdi + 0x4ca0], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x18000820a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ca8], r12
mov rcx, qword [rdi + 0x4cf0]
test rcx, rcx
je 0x180008249
mov qword [rdi + 0x4ce8], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x18000823c
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cf0], r12
mov rcx, qword [rdi + 0x5ce0]
test rcx, rcx
je 0x18000827b
mov qword [rdi + 0x5cd8], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x18000826e
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ce0], r12
mov rcx, qword [rdi + 0x5cf0]
test rcx, rcx
je 0x1800082ad
mov qword [rdi + 0x5ce8], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x1800082a0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cf0], r12
mov rcx, qword [rdi + 0x4d80]
test rcx, rcx
je 0x1800082df
mov qword [rdi + 0x4d78], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x1800082d2
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d80], r12
mov rcx, qword [rdi + 0x4d90]
test rcx, rcx
je 0x180008311
mov qword [rdi + 0x4d88], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180008304
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d90], r12
mov rcx, qword [rdi + 0x4da0]
test rcx, rcx
je 0x180008343
mov qword [rdi + 0x4d98], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180008336
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4da0], r12
mov rcx, qword [rdi + 0x5d88]
test rcx, rcx
je 0x180008375
mov qword [rdi + 0x5d80], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180008368
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d88], r12
mov rcx, qword [rdi + 0x5d78]
test rcx, rcx
je 0x1800083a7
mov qword [rdi + 0x5d70], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x18000839a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d78], r12
cmp qword [rdi + 0x5e00], 0
je 0x1800083d8
mov rbx, qword [rdi + 0x5e00]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1800083d1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5e00], r12
mov rcx, qword [rdi + 0x5e10]
test rcx, rcx
je 0x18000840a
mov qword [rdi + 0x5e08], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x1800083fd
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e10], r12
mov rcx, qword [rdi + 0x5e48]
test rcx, rcx
je 0x18000843c
mov qword [rdi + 0x5e40], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x18000842f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e48], r12
mov rcx, qword [rdi + 0x5e58]
test rcx, rcx
je 0x18000846e
mov qword [rdi + 0x5e50], r12
mov rax, qword [0x1800ebe10]
test rax, rax
je 0x180008461
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e58], r12
mov dword [rdi + 0x5e60], 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