Function at 0x140062790
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x1402e2d40]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x1400627cb
cmp byte [rdi + 1], 0
je 0x1400627cb
mov byte [rax + 0x18], 0
mov rcx, qword [rdi + 0x58]
call fcn.14007a870
xor r15d, r15d
mov qword [rdi + 0x58], r15
mov rcx, qword [rdi + 0x3c60]
test rcx, rcx
je 0x140062804
mov qword [rdi + 0x3c58], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x1400627f7
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c60], r15
cmp byte [rdi], r15b
je 0x140063008
cmp byte [rdi + 0x5ba1], r15b
je 0x140062875
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140062875
mov rax, qword [0x1402e2d40]
mov dword [rax + 0x5ba4], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.1400788e0
mov rsi, rax
lea rdx, [0x140176384]
mov rcx, rbx
call fcn.14005fe60
mov rbx, rax
test rax, rax
je 0x140062875
mov r9, rax
mov r8, qword [rsp + 0x40]
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, r15d
cmp dword [rdi + 0x5be8], r15d
jle 0x1400628c0
mov rsi, r15
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x5bf0]
cmp dword [rsi + rcx + 4], 6
jne 0x1400628b2
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 + 0x5be8]
jl 0x140062890
mov ebx, r15d
cmp dword [rdi + 0x3e70], r15d
jle 0x1400628ee
mov rsi, r15
nop
mov rcx, qword [rdi + 0x3e78]
mov rcx, qword [rsi + rcx]
call fcn.14007a9c0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x3e70]
jl 0x1400628d0
mov rcx, qword [rdi + 0x3e78]
test rcx, rcx
je 0x140062920
mov qword [rdi + 0x3e70], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062913
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e78], r15
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x140062952
mov qword [rdi + 0x3e80], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062945
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e88], r15
mov rcx, qword [rdi + 0x3e98]
test rcx, rcx
je 0x140062984
mov qword [rdi + 0x3e90], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062977
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e98], r15
mov qword [rdi + 0x3ed0], r15
mov rcx, qword [rdi + 0x3ea8]
test rcx, rcx
je 0x1400629bd
mov qword [rdi + 0x3ea0], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x1400629b0
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea8], r15
mov rcx, qword [rdi + 0x3eb8]
test rcx, rcx
je 0x1400629ef
mov qword [rdi + 0x3eb0], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x1400629e2
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb8], r15
mov qword [rdi + 0x48b0], r15
mov qword [rdi + 0x3ee0], r15
mov qword [rdi + 0x3ed8], r15
mov qword [rdi + 0x3f68], r15
mov qword [rdi + 0x3f50], r15
mov qword [rdi + 0x3ee8], r15
lea rcx, [rdi + 0x4608]
call fcn.14005dff0
mov rcx, qword [rdi + 0x4820]
test rcx, rcx
je 0x140062a57
mov qword [rdi + 0x4818], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062a4a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4820], r15
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x140062a89
mov qword [rdi + 0x4828], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062a7c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4830], r15
mov rcx, qword [rdi + 0x4840]
test rcx, rcx
je 0x140062abb
mov qword [rdi + 0x4838], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062aae
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4840], r15
mov rcx, qword [rdi + 0x4880]
test rcx, rcx
je 0x140062aed
mov qword [rdi + 0x4878], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062ae0
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4880], r15
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x140062b1f
mov qword [rdi + 0x4888], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062b12
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4890], r15
mov ebp, r15d
cmp dword [rdi + 0x48a0], r15d
jle 0x140062be8
mov r14, r15
mov rax, qword [rdi + 0x48a8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140062bd6
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140062b72
mov rcx, rsi
call fcn.14005ded0
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062b69
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 + 0x40]
test rsi, rsi
je 0x140062b9f
mov rcx, rsi
call fcn.14005ded0
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062b95
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 + 0x78]
lea r9, [0x140079860]
mov edx, reloc.WS2_32.dll_recv
mov r8d, 2
call fcn.1401504e0
nop
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062bcd
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 + 0x48a0]
jl 0x140062b32
mov rcx, qword [rdi + 0x48a8]
test rcx, rcx
je 0x140062c1a
mov qword [rdi + 0x48a0], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062c0d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48a8], r15
lea rcx, [rdi + 0x4b88]
call fcn.140079890
mov rcx, qword [rdi + 0x4bb8]
test rcx, rcx
je 0x140062c58
mov qword [rdi + 0x4bb0], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062c4b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bb8], r15
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x140062c8a
mov qword [rdi + 0x4bc0], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062c7d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc8], r15
mov ebx, r15d
cmp dword [rdi + 0x4b08], r15d
jle 0x140062cd8
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x4b10]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140062cca
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062cc3
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 + 0x4b08]
jl 0x140062ca0
mov rcx, qword [rdi + 0x4b10]
test rcx, rcx
je 0x140062d0a
mov qword [rdi + 0x4b08], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062cfd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b10], r15
lea rcx, [rdi + 0x4b38]
call fcn.140079a10
mov esi, r15d
cmp dword [rdi + 0x4b28], r15d
jle 0x140062d75
mov rbp, r15
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b30]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140087800
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140062d67
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062d60
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 + 0x4b28]
jl 0x140062d30
mov rcx, qword [rdi + 0x4b30]
test rcx, rcx
je 0x140062da7
mov qword [rdi + 0x4b28], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062d9a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b30], r15
mov rcx, qword [rdi + 0x4b78]
test rcx, rcx
je 0x140062dd9
mov qword [rdi + 0x4b70], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062dcc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b78], r15
mov rcx, qword [rdi + 0x5b68]
test rcx, rcx
je 0x140062e0b
mov qword [rdi + 0x5b60], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062dfe
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b68], r15
mov rcx, qword [rdi + 0x5b78]
test rcx, rcx
je 0x140062e3d
mov qword [rdi + 0x5b70], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062e30
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b78], r15
mov rcx, qword [rdi + 0x4c08]
test rcx, rcx
je 0x140062e6f
mov qword [rdi + 0x4c00], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062e62
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c08], r15
mov rcx, qword [rdi + 0x4c18]
test rcx, rcx
je 0x140062ea1
mov qword [rdi + 0x4c10], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062e94
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c18], r15
mov rcx, qword [rdi + 0x4c28]
test rcx, rcx
je 0x140062ed3
mov qword [rdi + 0x4c20], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062ec6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c28], r15
mov rcx, qword [rdi + 0x5bd0]
test rcx, rcx
je 0x140062f05
mov qword [rdi + 0x5bc8], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062ef8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bd0], r15
mov rcx, qword [rdi + 0x5bc0]
test rcx, rcx
je 0x140062f37
mov qword [rdi + 0x5bb8], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062f2a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bc0], r15
cmp qword [rdi + 0x5c40], 0
je 0x140062f68
mov rbx, qword [rdi + 0x5c40]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140062f61
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c40], r15
mov rcx, qword [rdi + 0x5c50]
test rcx, rcx
je 0x140062f9a
mov qword [rdi + 0x5c48], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062f8d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c50], r15
mov rcx, qword [rdi + 0x5c88]
test rcx, rcx
je 0x140062fcc
mov qword [rdi + 0x5c80], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062fbf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c88], r15
mov rcx, qword [rdi + 0x5c98]
test rcx, rcx
je 0x140062ffe
mov qword [rdi + 0x5c90], r15
mov rax, qword [0x1402e2d40]
test rax, rax
je 0x140062ff1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c98], r15
mov dword [rdi + 0x5ca0], r15d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret