Function at 0x140061470
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r12
lea rbp, [rsp - 0x70]
sub rsp, 0x170
lea r12, [0x14012dc58]
mov rdi, rcx
mov rdx, r12
call fcn.140024c30
mov edx, eax
shr edx, 0x1f
test dl, dl
jne 0x140061649
mov rcx, qword [rdi + 0x10]
mov edx, 3
mov qword [rsp + 0x190], rbx
mov qword [rsp + 0x1a8], rsi
mov qword [rsp + 0x168], r14
mov rax, qword [rcx]
mov qword [rsp + 0x160], r15
call qword [rax + 0x40]
test rax, rax
lea r8, str.Unnamed
cmovne r8, rax
xor ebx, ebx
mov esi, ebx
mov edx, ebx
movzx ecx, byte [r8]
lea r8, [r8 + 1]
test cl, cl
je 0x140061536
test rdx, rdx
jne 0x14006150c
cmp cl, 0x30
jl 0x140061516
cmp cl, 0x39
jg 0x140061516
mov byte [rsp + 0x60], 0x41
inc esi
mov edx, 1
jmp 0x140061524
cmp cl, 0x30
jl 0x140061516
cmp cl, 0x39
jle 0x140061524
lea eax, [rcx - 0x61]
cmp al, 0x19
jbe 0x140061524
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x14006152d
inc esi
mov byte [rsp + rdx + 0x60], cl
inc rdx
cmp rdx, 0xfc
jl 0x1400614e3
movsxd rax, esi
lea rcx, [rdi + 0x28]
mov edx, 2
mov byte [rsp + rax + 0x60], bl
call fcn.140025da0
lea r8, [0x14012dcb0]
mov rdx, rbx
nop word [rax + rax]
movzx ecx, word [rax + rdx*2]
mov r14, 0xffffffffffffffff
cmp cx, word [r8 + rdx*2]
jne 0x1400615a0
movzx ecx, word [rax + rdx*2 + 2]
cmp cx, word [r8 + rdx*2 + 2]
jne 0x1400615a0
add rdx, 2
cmp rdx, 0xa
jne 0x140061560
mov dword [rsp + 0x30], gethostbyname
mov dword [rdi + 0x2d8], 1
jmp 0x140061677
mov edx, 2
lea rcx, [rdi + 0x28]
call fcn.140025da0
mov r8, rax
lea r9, [0x14012bb38]
mov rdx, r14
nop dword [rax + rax]
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r9 + rdx*2 + 2]
jne 0x1400615e4
add rdx, 2
cmp rdx, 0xb
je 0x140061655
movzx eax, word [r8 + rdx*2]
cmp ax, word [r9 + rdx*2]
je 0x1400615c0
mov edx, 2
lea rcx, [rdi + 0x28]
call fcn.140025da0
mov r8, rax
mov rdx, r14
nop dword [rax + rax]
movzx ecx, word [r8 + rdx*2 + 2]
cmp cx, word [r12 + rdx*2 + 2]
jne 0x140061624
add rdx, 2
cmp rdx, 0xd
je 0x140061669
movzx eax, word [r8 + rdx*2]
cmp ax, word [r12 + rdx*2]
je 0x140061600
mov eax, 0x80040208
mov r14, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x1a8]
mov rbx, qword [rsp + 0x190]
mov r15, qword [rsp + 0x160]
add rsp, 0x170
pop r12
pop rdi
pop rbp
ret
mov dword [rsp + 0x30], 0x1e
mov dword [rdi + 0x2d8], 2
jmp 0x140061677
mov dword [rsp + 0x30], ebx
mov dword [rdi + 0x2d8], 8
mov eax, dword [rdi + 0x250]
lea r9, [rbp + 0x98]
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov r8d, socket
mov eax, dword [rdi + 0x258]
mov dword [rsp + 0x38], eax
lea eax, [rsi + 1]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], ebx
mov dword [rbp + 0x98], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x40]
lea r9, [rbp + 0x98]
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x60]
mov dword [rbp + 0x98], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x38]
lea r8, [rbp + 0x98]
mov r9d, 1
mov qword [rbp + 0x98], rbx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
mov edx, ebx
cmovne r14, qword [rbp + 0x98]
cmp dword [rdi + 0x258], ebx
jbe 0x140061749
nop dword [rax + rax]
mov eax, dword [rdi + 0x2d8]
mov ecx, edx
inc edx
imul rax, rcx
imul rax, qword [rdi + 0x250]
add rax, r14
mov qword [rdi + rcx*8 + 0x298], rax
cmp edx, dword [rdi + 0x258]
jb 0x140061720
cmp qword [rdi + 0x270], rbx
jne 0x14006177a
mov ecx, dword [rdi + 0x264]
imul ecx, dword [rdi + 0x2d8]
call fcn.1400b609c
mov qword [rdi + 0x270], rax
test rax, rax
jne 0x14006177a
mov eax, 0x80040202
jmp 0x140061629
mov edx, dword [rdi + 0x2d8]
mov rcx, rdi
mov r9d, dword [rdi + 0x260]
mov r8d, dword [rdi + 0x258]
shl edx, 3
call fcn.140024600
mov rcx, rdi
call fcn.1400246e0
mov rcx, qword [rdi + 0x270]
mov r14d, eax
mov qword [rdi + 0x270], rbx
test rcx, rcx
je 0x1400617bc
call fcn.1400b60a4
mov ecx, r14d
shr ecx, 0x1f
test cl, cl
je 0x1400617ce
mov eax, r14d
jmp 0x140061629
lea eax, [rsi + 4]
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x58], eax
dec rcx
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x50], 1
cmp byte [rcx + 1], bl
lea rcx, [rcx + 1]
jne 0x1400617f2
mov eax, dword [0x140143850]
lea r9, [rbp + 0x98]
mov dword [rcx], eax
lea rdx, [rsp + 0x48]
mov eax, dword [rdi + 0x260]
xorps xmm0, xmm0
mov rcx, qword [rdi + 0x38]
mov r8d, socket
mov dword [rbp + 0x98], ebx
mov qword [rsp + 0x20], rbx
cvtsi2sd xmm0, rax
movsd qword [rbp + 0xa0], xmm0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x58]
lea r9, [rbp + 0x98]
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x60]
mov dword [rbp + 0x98], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x38]
lea r9, [rbp + 0x98]
mov r8d, 8
mov dword [rbp + 0x98], ebx
lea rdx, [rbp + 0xa0]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [rdi + 0x268]
lea r9, [rbp + 0x98]
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x30]
mov r8d, socket
mov dword [rsp + 0x34], eax
mov dword [rbp + 0x98], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x140061629