Function at 0x180007d70
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 rdi, qword [0x1800f85c0]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x180007dcc
cmp byte [rdi + 1], 0
je 0x180007dcc
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x180007dcc
mov rcx, rbx
call fcn.180038710
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180007dc3
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3d98]
test rcx, rcx
je 0x180007e05
mov qword [rdi + 0x3d90], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180007df8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d98], r12
cmp byte [rdi], r12b
je 0x180008701
cmp byte [rdi + 0x5e10], r12b
je 0x180007e76
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x180007e76
mov rax, qword [0x1800f85c0]
mov dword [rax + 0x5e14], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.18001e5f0
mov rsi, rax
lea rdx, [0x1800dc5ac]
mov rcx, rbx
call fcn.180004a40
mov rbx, rax
test rax, rax
je 0x180007e76
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]
mov rbp, qword [0x1800f85c0]
mov ebx, r12d
cmp dword [rbp + 0x4a18], r12d
jle 0x180007eae
mov rsi, r12
nop dword [rax]
mov rcx, qword [rbp + 0x4a20]
mov rcx, qword [rcx + rsi]
call fcn.180021150
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rbp + 0x4a18]
jl 0x180007e90
mov esi, r12d
cmp dword [rdi + 0x5dd0], r12d
jle 0x180007f02
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5dd8]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x180007ef4
mov rcx, rbx
call fcn.180022d20
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180007eeb
dec dword [rax + 0xf4]
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 + 0x5dd0]
jl 0x180007ec0
mov ebx, r12d
cmp dword [rdi + 0x5e58], r12d
jle 0x180007f41
mov rsi, r12
mov rcx, qword [rdi + 0x5e60]
cmp dword [rcx + rsi + 4], 6
jne 0x180007f33
mov rax, qword [rcx + rsi + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5e58]
jl 0x180007f11
mov esi, r12d
cmp dword [rdi + 0x3fc0], r12d
jle 0x180007f91
mov r14, r12
mov rax, qword [rdi + 0x3fc8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x180007f83
mov rcx, rbx
call fcn.180008cd0
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180007f7a
dec dword [rax + 0xf4]
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 + 0x3fc0]
jl 0x180007f50
mov rcx, qword [rdi + 0x3fc8]
test rcx, rcx
je 0x180007fc3
mov qword [rdi + 0x3fc0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180007fb6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc8], r12
mov rcx, qword [rdi + 0x3fd8]
test rcx, rcx
je 0x180007ff5
mov qword [rdi + 0x3fd0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180007fe8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd8], r12
mov rcx, qword [rdi + 0x3fe8]
test rcx, rcx
je 0x180008027
mov qword [rdi + 0x3fe0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x18000801a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe8], r12
mov qword [rdi + 0x4020], r12
mov rcx, qword [rdi + 0x3ff8]
test rcx, rcx
je 0x180008060
mov qword [rdi + 0x3ff0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008053
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff8], r12
mov rcx, qword [rdi + 0x4008]
test rcx, rcx
je 0x180008092
mov qword [rdi + 0x4000], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008085
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4008], r12
mov qword [rdi + 0x4a90], r12
mov qword [rdi + 0x4030], r12
mov qword [rdi + 0x4028], r12
mov qword [rdi + 0x40b8], r12
mov qword [rdi + 0x40a0], r12
mov qword [rdi + 0x4038], r12
lea rcx, [rdi + 0x4758]
call fcn.180002ac0
mov rcx, qword [rdi + 0x4998]
test rcx, rcx
je 0x1800080fa
mov qword [rdi + 0x4990], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800080ed
dec dword [rax + 0xf4]
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 0x18000812c
mov qword [rdi + 0x49a0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x18000811f
dec dword [rax + 0xf4]
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 0x18000815e
mov qword [rdi + 0x49b0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008151
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b8], r12
mov rcx, qword [rdi + 0x49f8]
test rcx, rcx
je 0x180008190
mov qword [rdi + 0x49f0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008183
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49f8], r12
mov rcx, qword [rdi + 0x4a08]
test rcx, rcx
je 0x1800081c2
mov qword [rdi + 0x4a00], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800081b5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a08], r12
mov qword [rdi + 0x4a40], r12
mov qword [rdi + 0x4a38], r12
mov qword [rdi + 0x4a30], r12
mov ebp, r12d
cmp dword [rdi + 0x4a18], r12d
jle 0x1800082ad
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4a20]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x18000829b
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x180008233
mov rcx, rsi
call fcn.1800028c0
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x18000822a
dec dword [rax + 0xf4]
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 0x180008263
mov rcx, rsi
call fcn.1800028c0
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008259
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0xe0]
lea r9, [0x18002ad60]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1800c7b1c
nop
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008292
dec dword [rax + 0xf4]
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 + 0x4a18]
jl 0x1800081f0
mov rcx, qword [rdi + 0x4a20]
test rcx, rcx
je 0x1800082df
mov qword [rdi + 0x4a18], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800082d2
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a20], r12
lea rcx, [rdi + 0x4d78]
call fcn.18002b0a0
mov rcx, qword [rdi + 0x4da8]
test rcx, rcx
je 0x18000831d
mov qword [rdi + 0x4da0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008310
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4da8], r12
mov rcx, qword [rdi + 0x4db8]
test rcx, rcx
je 0x18000834f
mov qword [rdi + 0x4db0], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008342
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4db8], r12
mov ebx, r12d
cmp dword [rdi + 0x4cf8], r12d
jle 0x180008398
mov rsi, r12
nop
mov rax, qword [rdi + 0x4d00]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x18000838a
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008383
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4cf8]
jl 0x180008360
mov rcx, qword [rdi + 0x4d00]
test rcx, rcx
je 0x1800083ca
mov qword [rdi + 0x4cf8], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800083bd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d00], r12
lea rcx, [rdi + 0x4d28]
call fcn.18002b220
mov esi, r12d
cmp dword [rdi + 0x4d18], r12d
jle 0x180008435
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4d20]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.180038050
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x180008427
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008420
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4d18]
jl 0x1800083f0
mov rcx, qword [rdi + 0x4d20]
test rcx, rcx
je 0x180008467
mov qword [rdi + 0x4d18], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x18000845a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d20], r12
mov rcx, qword [rdi + 0x4d68]
test rcx, rcx
je 0x180008499
mov qword [rdi + 0x4d60], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x18000848c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d68], r12
mov rcx, qword [rdi + 0x5d90]
test rcx, rcx
je 0x1800084cb
mov qword [rdi + 0x5d88], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800084be
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d90], r12
mov rcx, qword [rdi + 0x5da0]
test rcx, rcx
je 0x1800084fd
mov qword [rdi + 0x5d98], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800084f0
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5da0], r12
mov rcx, qword [rdi + 0x4e08]
test rcx, rcx
je 0x18000852f
mov qword [rdi + 0x4e00], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008522
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e08], r12
mov rcx, qword [rdi + 0x4e18]
test rcx, rcx
je 0x180008561
mov qword [rdi + 0x4e10], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008554
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e18], r12
mov rcx, qword [rdi + 0x4e28]
test rcx, rcx
je 0x180008593
mov qword [rdi + 0x4e20], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008586
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e28], r12
mov dword [rdi + 0x5c78], r12d
mov rcx, qword [rdi + 0x5c88]
test rcx, rcx
je 0x1800085cc
mov qword [rdi + 0x5c80], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800085bf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c88], r12
mov rcx, qword [rdi + 0x5e40]
test rcx, rcx
je 0x1800085fe
mov qword [rdi + 0x5e38], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800085f1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e40], r12
mov rcx, qword [rdi + 0x5e30]
test rcx, rcx
je 0x180008630
mov qword [rdi + 0x5e28], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008623
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e30], r12
cmp qword [rdi + 0x5ec0], 0
je 0x180008661
mov rbx, qword [rdi + 0x5ec0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x18000865a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5ec0], r12
mov rcx, qword [rdi + 0x5ed0]
test rcx, rcx
je 0x180008693
mov qword [rdi + 0x5ec8], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x180008686
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ed0], r12
mov rcx, qword [rdi + 0x5f08]
test rcx, rcx
je 0x1800086c5
mov qword [rdi + 0x5f00], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800086b8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f08], r12
mov rcx, qword [rdi + 0x5f18]
test rcx, rcx
je 0x1800086f7
mov qword [rdi + 0x5f10], r12
mov rax, qword [0x1800f85c0]
test rax, rax
je 0x1800086ea
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f18], r12
mov dword [rdi + 0x5f20], 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