Function at 0x14005ddf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1ffb8]
mov eax, 0x200b8
call fcn.1400d9ac0
sub rsp, rax
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea r13, vtable.TextStream.0
mov qword [rsp + 0x40], r13
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov ecx, dword [0x140128010]
cmp ecx, 0xffffffff
je 0x14005de7b
mov dword [rsp + 0x54], ecx
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x14005de7b
mov byte [rsp + 0x5e], r12b
lea rax, vtable.TextFile.0
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x80], 0xffffffffffffffff
mov rax, qword [0x14011f188]
mov r9d, dword [rax + 0xb8]
btr r9d, 0x1f
mov r8d, 0x30c
mov rdx, qword [rbp + 0x20020]
lea rcx, [rsp + 0x40]
call fcn.140099800
movzx ebx, al
test al, al
jne 0x14005def2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsi + 0x28]
cmp byte [rcx], 9
jne 0x14005ded7
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14005def2
mov r8d, 9
mov edx, eax
lea rcx, [0x140127620]
call fcn.14000f390
mov edi, eax
jmp 0x14005e597
mov rcx, qword [rbp + 0x20028]
call fcn.1400cc210
test rax, rax
jne 0x14005df34
mov rax, qword [0x140127498]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400ffa10]
lea rcx, [0x140127620]
call fcn.14000f850
mov edi, eax
jmp 0x14005e597
xor r10d, r10d
mov qword [rbp - 0x60], r10
mov qword [rbp - 0x58], rax
mov word [rbp - 0x50], r10w
mov dword [rsp + 0x30], 4
mov qword [rbp - 0x70], r10
mov rax, qword [0x14011f188]
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x60]
mov qword [rax + 0x18], rcx
test bl, bl
je 0x14005e50c
lea ebx, [r10 + 2]
nop
mov ecx, dword [rsp + 0x4c]
mov rsi, qword [rsp + 0x70]
test ecx, ecx
je 0x14005dfa6
test rsi, rsi
jne 0x14005dfa6
mov r8d, ecx
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x20]
xor r10d, r10d
mov ecx, r10d
mov dword [rsp + 0x4c], ecx
mov rsi, qword [rsp + 0x70]
mov word [rsp + 0x6c], r10w
mov edi, r10d
mov r12d, dword [rsp + 0x54]
mov r14d, r10d
cmp r12d, 0x4b0
sete r14b
inc r14d
mov dword [rsp + 0x38], r14d
mov r13d, r14d
mov r9, qword [rsp + 0x78]
test rsi, rsi
jne 0x14005e00c
mov ebx, 0x2000
test r9, r9
jne 0x14005dff9
mov ecx, ebx
call fcn.1400c0494
mov r9, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14005e05d
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx + 0x2000]
cmp eax, ebx
jbe 0x14005e005
sub ebx, ecx
mov edx, ecx
add rdx, r9
jmp 0x14005e077
mov eax, r13d
mov r8d, ecx
sub r8, rax
add r8, r9
cmp rsi, r8
jbe 0x14005e0c0
mov eax, r9d
sub eax, esi
add ecx, eax
mov dword [rsp + 0x4c], ecx
mov r8d, ecx
mov rdx, rsi
mov rcx, r9
call fcn.1400bba40
mov ebx, 0x2000
mov r9, qword [rsp + 0x78]
test r9, r9
jne 0x14005e063
mov ecx, ebx
call fcn.1400c0494
mov r9, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x14005e063
mov ecx, dword [rsp + 0x4c]
jmp 0x14005e09e
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx + 0x2000]
cmp eax, ebx
jbe 0x14005e073
sub ebx, ecx
lea rdx, [r9 + rcx]
mov rax, qword [rsp + 0x40]
mov r8d, ebx
lea rcx, [rsp + 0x40]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
mov ecx, dword [rsp + 0x4c]
je 0x14005e095
add ecx, eax
mov dword [rsp + 0x4c], ecx
mov r9, qword [rsp + 0x78]
mov dword [rsp + 0x50], eax
mov rsi, r9
mov qword [rsp + 0x70], r9
cmp ecx, r13d
setae al
xor r10d, r10d
test al, al
jne 0x14005e0bb
test ecx, ecx
je 0x14005e304
mov ebx, 2
mov r13d, r14d
mov r15d, ecx
add r15, r9
cmp r12d, 0x4b0
jne 0x14005e0e9
movzx eax, r15b
sub al, sil
test al, 1
je 0x14005e0e9
dec r15
cmp r15, rsi
je 0x14005e2ec
cmp rsi, r15
jae 0x14005e26b
cmp edi, 0xffff
jae 0x14005e2c0
cmp r12d, 0x4b0
jne 0x14005e114
movzx ecx, word [rsi]
mov word [rsp + 0x34], cx
jmp 0x14005e1d0
mov ebx, 1
movsx edx, byte [rsi]
cmp dl, 0x80
jae 0x14005e12e
movzx ecx, dx
mov word [rsp + 0x34], dx
jmp 0x14005e1d0
cmp r12d, 0xfde9
jne 0x14005e17f
movzx eax, dl
and al, 0xe0
cmp al, 0xc0
jne 0x14005e149
mov ecx, 2
mov ebx, ecx
jmp 0x14005e193
movzx eax, dl
and al, 0xf0
cmp al, 0xe0
jne 0x14005e15c
mov ebx, 3
lea ecx, [rbx - 1]
jmp 0x14005e193
and dl, 0xf8
cmp dl, 0xf0
jne 0x14005e16e
mov ebx, 4
lea ecx, [rbx - 2]
jmp 0x14005e193
mov eax, edi
mov ecx, 0xfffd
mov word [rbp + rax*2 - 0x50], cx
jmp 0x14005e226
lea rcx, [rsp + 0x40]
call fcn.1400997d0
test al, al
mov ecx, 2
cmovne ebx, ecx
mov eax, ebx
add rax, rsi
cmp rax, r15
ja 0x14005e28d
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
mov edx, 8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rcx, eax
cmp ecx, 1
jne 0x14005e1e9
movzx ecx, word [rsp + 0x34]
cmp cx, 0xa
je 0x14005e344
cmp cx, 0xd
je 0x14005e23c
mov eax, edi
mov word [rbp + rax*2 - 0x50], cx
jmp 0x14005e226
mov eax, edi
lea r9, [rbp - 0x50]
lea r9, [r9 + rax*2]
test ecx, ecx
je 0x14005e220
lea r14d, [rcx + rdi]
cmp r14d, 0xffff
ja 0x14005e36f
mov r8, rcx
add r8, r8
lea rdx, [rsp + 0x34]
mov rcx, r9
call fcn.1400bba40
mov edi, r14d
jmp 0x14005e228
mov word [r9], 0xfffd
inc edi
mov eax, ebx
add rsi, rax
cmp rsi, r15
jae 0x14005e281
mov ebx, 2
jmp 0x14005e0f2
mov r14d, dword [rsp + 0x38]
lea r13d, [r14 + r14]
mov eax, r13d
add rax, rsi
cmp rax, r15
jbe 0x14005e319
cmp dword [rsp + 0x50], 0
je 0x14005e333
mov r9, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x4c]
cmp rsi, r15
jne 0x14005e2ce
xor r10d, r10d
mov ecx, r10d
mov dword [rsp + 0x4c], ecx
mov esi, r10d
mov qword [rsp + 0x70], r10
jmp 0x14005e2d6
mov r9, qword [rsp + 0x78]
mov r14d, dword [rsp + 0x38]
jmp 0x14005e264
mov r9, qword [rsp + 0x78]
mov r14d, dword [rsp + 0x38]
cmp dword [rsp + 0x50], 0
jne 0x14005e2bb
xor r10d, r10d
mov ecx, r10d
mov dword [rsp + 0x4c], ecx
mov esi, r10d
mov eax, edi
mov edx, 0xfffd
mov word [rbp + rax*2 - 0x50], dx
inc edi
jmp 0x14005e268
mov r13d, ebx
jmp 0x14005e264
mov r9, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x38]
mov qword [rsp + 0x70], rsi
xor r10d, r10d
cmp edi, 0xffff
jae 0x14005e37d
mov ebx, 2
jmp 0x14005dfd2
mov qword [rsp + 0x70], r10
mov dword [rsp + 0x4c], r10d
mov eax, edi
mov ecx, 0xfffd
mov word [rbp + rax*2 - 0x50], cx
inc edi
xor r12d, r12d
cmp edi, 0xffff
jae 0x14005e380
mov eax, edi
mov word [rbp + rax*2 - 0x50], r10w
jmp 0x14005e380
cmp r12d, 0x4b0
jne 0x14005e328
movzx eax, word [rsi + 2]
jmp 0x14005e32c
movsx eax, byte [rsi + 1]
cmp eax, 0xa
jne 0x14005e333
add ebx, ebx
test byte [rsp + 0x48], 8
je 0x14005e344
mov eax, 0xa
mov word [rsp + 0x34], ax
mov eax, ebx
add rax, rsi
mov qword [rsp + 0x70], rax
mov eax, edi
mov ecx, 0xa
mov word [rbp + rax*2 - 0x50], cx
inc edi
xor r12d, r12d
cmp edi, 0xffff
jae 0x14005e380
mov word [rbp + rdi*2 - 0x50], r12w
jmp 0x14005e380
mov qword [rsp + 0x70], rsi
xor r12d, r12d
mov word [r9], r12w
jmp 0x14005e380
xor r12d, r12d
mov eax, edi
test edi, edi
je 0x14005e4ec
cmp word [rbp + rax*2 - 0x52], 0xa
jne 0x14005e395
dec rax
mov word [rbp + rax*2 - 0x50], r12w
mov rsi, qword [rbp + 0x20000]
mov rcx, qword [rsi + 0x20]
cmp byte [rcx], 3
jne 0x14005e3db
mov ebx, 2
lea r9, [rbp - 0x70]
mov r8, qword [rbp + 0x20008]
mov edx, ebx
mov rcx, qword [rcx + 0x20]
call fcn.14005a100
mov edi, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x20]
mov rax, qword [rbp - 0x70]
cmp rax, rcx
je 0x14005e3b0
jmp 0x14005e3ff
lea r9, [rbp - 0x70]
mov r8, qword [rbp + 0x20008]
mov edx, 3
call fcn.14005a100
mov edi, eax
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x70]
mov ebx, 2
test rax, rax
je 0x14005e41d
cmp edi, 6
jne 0x14005e40e
cmp rax, rsi
je 0x14005e422
mov r15, qword [rbp + 0x20010]
mov qword [r15], rax
jmp 0x14005e4fe
cmp edi, 6
jne 0x14005e42c
mov dword [rsp + 0x30], 1
jmp 0x14005e435
cmp edi, 1
jne 0x14005e4f7
mov r14, qword [rbp + 0x20018]
test r14, r14
je 0x14005e4dd
mov qword [0x140127cd8], r14
mov rax, qword [0x14011f188]
cmp byte [rax + 0xc6], 0
je 0x14005e49d
movsxd rax, dword [0x140127290]
lea rdi, [0x140000000]
mov qword [rdi + rax*8 + 0x126610], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140127290]
mov dword [rdi + rdx*4 + 0x125fd0], eax
inc edx
mov dword [0x140127290], edx
cmp edx, 0x190
jl 0x14005e49d
mov dword [0x140127290], r12d
cmp qword [0x140121a70], 0xffffffffffffffff
je 0x14005e4af
mov rdx, r14
call fcn.140008934
xor edx, edx
mov rcx, r14
call fcn.1400765f0
mov edi, eax
mov dword [rsp + 0x30], eax
cmp eax, 1
jne 0x14005e4f7
mov edi, 5
mov dword [rsp + 0x30], edi
mov rcx, qword [0x1401272b0]
call fcn.140067190
test eax, eax
jne 0x14005e53b
mov rax, qword [rbp - 0x68]
inc qword [rax]
xor r10d, r10d
jmp 0x14005df70
mov edi, dword [rsp + 0x30]
mov rsi, qword [rbp + 0x20000]
mov r15, qword [rbp + 0x20010]
cmp edi, 4
jne 0x14005e537
mov r14, qword [rbp + 0x20008]
jmp 0x14005e50f
xor r12d, r12d
mov rcx, qword [rsi + 0x28]
cmp byte [rcx], 9
jne 0x14005e530
mov r9, r15
mov r8, r14
mov edx, 3
mov rcx, qword [rcx + 0x20]
call fcn.14005a100
mov edi, eax
jmp 0x14005e53b
mov edi, 1
jmp 0x14005e53b
mov edi, dword [rsp + 0x30]
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x14005e587
mov r8d, dword [rbx + 0xc]
test r8d, r8d
je 0x14005e565
cmp qword [rbx + 0x30], 0
jne 0x14005e565
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x38]
mov rcx, rbx
call qword [rax + 0x20]
mov dword [rbx + 0xc], r12d
mov word [rbx + 0x2c], r12w
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14005e587
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rbp - 0x58]
call fcn.1400c0480
lea r13, vtable.TextStream.0
lea rax, vtable.TextFile.0
mov qword [rsp + 0x40], rax
mov r8d, dword [rsp + 0x4c]
test r8d, r8d
je 0x14005e5d8
cmp qword [rsp + 0x70], 0
jne 0x14005e5d8
mov dword [rsp + 0x34], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x4c], r12d
mov word [rsp + 0x6c], r12w
mov rcx, qword [rbp - 0x80]
cmp rcx, 0xffffffffffffffff
je 0x14005e606
mov eax, dword [rsp + 0x48]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x14005e5fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], 0xffffffffffffffff
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14005e61b
call fcn.1400c0480
nop
mov eax, edi
add rsp, 0x200b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret