Function at 0x14004b320
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 [0x140173d48]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14004b37c
cmp byte [rdi + 1], 0
je 0x14004b37c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14004b37c
mov rcx, rbx
call fcn.14006f650
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b373
dec dword [rax + 0xec]
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 + 0x3c70]
test rcx, rcx
je 0x14004b3b5
mov qword [rdi + 0x3c68], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b3a8
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c70], r12
cmp byte [rdi], r12b
je 0x14004bc21
cmp byte [rdi + 0x5c29], r12b
je 0x14004b426
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14004b426
mov rax, qword [0x140173d48]
mov dword [rax + 0x5c2c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14005fa40
mov rsi, rax
lea rdx, [0x14015ca24]
mov rcx, rbx
call fcn.140048910
mov rbx, rax
test rax, rax
je 0x14004b426
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 ebx, r12d
cmp dword [rdi + 0x5c70], r12d
jle 0x14004b470
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x5c78]
cmp dword [rsi + rcx + 4], 6
jne 0x14004b462
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 + 0x5c70]
jl 0x14004b440
mov esi, r12d
cmp dword [rdi + 0x3ea8], r12d
jle 0x14004b4c1
mov r14, r12
nop
mov rax, qword [rdi + 0x3eb0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14004b4b3
mov rcx, rbx
call fcn.14004c140
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b4aa
dec dword [rax + 0xec]
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 + 0x3ea8]
jl 0x14004b480
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x14004b4f3
mov qword [rdi + 0x3ea8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b4e6
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb0], r12
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x14004b525
mov qword [rdi + 0x3eb8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b518
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec0], r12
mov rcx, qword [rdi + 0x3ed0]
test rcx, rcx
je 0x14004b557
mov qword [rdi + 0x3ec8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b54a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ed0], r12
mov qword [rdi + 0x3f08], r12
mov rcx, qword [rdi + 0x3ee0]
test rcx, rcx
je 0x14004b590
mov qword [rdi + 0x3ed8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b583
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ee0], r12
mov rcx, qword [rdi + 0x3ef0]
test rcx, rcx
je 0x14004b5c2
mov qword [rdi + 0x3ee8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b5b5
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ef0], r12
mov qword [rdi + 0x48f0], r12
mov qword [rdi + 0x3f18], r12
mov qword [rdi + 0x3f10], r12
mov qword [rdi + 0x3fa0], r12
mov qword [rdi + 0x3f88], r12
mov qword [rdi + 0x3f20], r12
lea rcx, [rdi + 0x4640]
call fcn.140046d50
mov rcx, qword [rdi + 0x4860]
test rcx, rcx
je 0x14004b62a
mov qword [rdi + 0x4858], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b61d
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4860], r12
mov rcx, qword [rdi + 0x4870]
test rcx, rcx
je 0x14004b65c
mov qword [rdi + 0x4868], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b64f
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4870], r12
mov rcx, qword [rdi + 0x4880]
test rcx, rcx
je 0x14004b68e
mov qword [rdi + 0x4878], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b681
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4880], r12
mov rcx, qword [rdi + 0x48c0]
test rcx, rcx
je 0x14004b6c0
mov qword [rdi + 0x48b8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b6b3
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48c0], r12
mov rcx, qword [rdi + 0x48d0]
test rcx, rcx
je 0x14004b6f2
mov qword [rdi + 0x48c8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b6e5
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48d0], r12
mov ebp, r12d
cmp dword [rdi + 0x48e0], r12d
jle 0x14004b7c4
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48e8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14004b7b2
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14004b750
mov rcx, rsi
call fcn.140046b50
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b747
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14004b77d
mov rcx, rsi
call fcn.140046b50
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b773
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x140060bd0]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400de154
nop
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b7a9
dec dword [rax + 0xec]
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 + 0x48e0]
jl 0x14004b710
mov rcx, qword [rdi + 0x48e8]
test rcx, rcx
je 0x14004b7f6
mov qword [rdi + 0x48e0], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b7e9
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48e8], r12
lea rcx, [rdi + 0x4bd8]
call fcn.140060c00
mov rcx, qword [rdi + 0x4c08]
test rcx, rcx
je 0x14004b834
mov qword [rdi + 0x4c00], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b827
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c08], r12
mov rcx, qword [rdi + 0x4c18]
test rcx, rcx
je 0x14004b866
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b859
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c18], r12
mov ebx, r12d
cmp dword [rdi + 0x4b58], r12d
jle 0x14004b8b8
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b60]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14004b8aa
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b8a3
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b58]
jl 0x14004b880
mov rcx, qword [rdi + 0x4b60]
test rcx, rcx
je 0x14004b8ea
mov qword [rdi + 0x4b58], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b8dd
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b60], r12
lea rcx, [rdi + 0x4b88]
call fcn.140060d80
mov esi, r12d
cmp dword [rdi + 0x4b78], r12d
jle 0x14004b955
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b80]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14006ec50
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14004b947
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b940
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b78]
jl 0x14004b910
mov rcx, qword [rdi + 0x4b80]
test rcx, rcx
je 0x14004b987
mov qword [rdi + 0x4b78], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b97a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b80], r12
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x14004b9b9
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b9ac
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc8], r12
mov rcx, qword [rdi + 0x5bf0]
test rcx, rcx
je 0x14004b9eb
mov qword [rdi + 0x5be8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004b9de
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bf0], r12
mov rcx, qword [rdi + 0x5c00]
test rcx, rcx
je 0x14004ba1d
mov qword [rdi + 0x5bf8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004ba10
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c00], r12
mov rcx, qword [rdi + 0x4c68]
test rcx, rcx
je 0x14004ba4f
mov qword [rdi + 0x4c60], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004ba42
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c68], r12
mov rcx, qword [rdi + 0x4c78]
test rcx, rcx
je 0x14004ba81
mov qword [rdi + 0x4c70], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004ba74
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c78], r12
mov rcx, qword [rdi + 0x4c88]
test rcx, rcx
je 0x14004bab3
mov qword [rdi + 0x4c80], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004baa6
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c88], r12
mov dword [rdi + 0x5ad8], r12d
mov rcx, qword [rdi + 0x5ae8]
test rcx, rcx
je 0x14004baec
mov qword [rdi + 0x5ae0], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004badf
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ae8], r12
mov rcx, qword [rdi + 0x5c58]
test rcx, rcx
je 0x14004bb1e
mov qword [rdi + 0x5c50], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004bb11
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c58], r12
mov rcx, qword [rdi + 0x5c48]
test rcx, rcx
je 0x14004bb50
mov qword [rdi + 0x5c40], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004bb43
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c48], r12
cmp qword [rdi + 0x5cd0], 0
je 0x14004bb81
mov rbx, qword [rdi + 0x5cd0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14004bb7a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5cd0], r12
mov rcx, qword [rdi + 0x5ce0]
test rcx, rcx
je 0x14004bbb3
mov qword [rdi + 0x5cd8], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004bba6
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ce0], r12
mov rcx, qword [rdi + 0x5d18]
test rcx, rcx
je 0x14004bbe5
mov qword [rdi + 0x5d10], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004bbd8
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d18], r12
mov rcx, qword [rdi + 0x5d28]
test rcx, rcx
je 0x14004bc17
mov qword [rdi + 0x5d20], r12
mov rax, qword [0x140173d48]
test rax, rax
je 0x14004bc0a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d28], r12
mov dword [rdi + 0x5d30], 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