Function at 0x180010070
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x12834], 0
mov rbx, rcx
jne 0x1800100f9
mov rcx, qword [rcx + 8]
xor edx, edx
lea r8d, [rdx + 2]
call fcn.18001b46c
mov rcx, qword [rbx + 8]
lea r14, [rbx + 0x18]
call fcn.18001b6e0
mov r9, qword [rbx + 0x10]
mov edx, 4
lea r8d, [rdx - 3]
mov rcx, r14
mov dword [r14], eax
call fcn.18001b8e4
cmp rax, 1
jae 0x1800100d9
lea rdx, [0x180039c98]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 1
call fcn.18001ecac
int3
add dword [rbx + 0x1c], 4
cmp dword [r14], 0
je 0x1800104e2
mov rcx, qword [rbx + 8]
call fcn.18001b988
mov dword [r14], 0
jmp 0x180010159
mov eax, dword [rcx + 0x12878]
lea r14, [rcx + 0x18]
xor r8d, r8d
lea edx, [r8 + 4]
add rcx, 0x12838
mov dword [r14], eax
call fcn.180010be0
mov rax, qword [rbx + 0x12858]
cmp rax, qword [rbx + 0x12850]
jne 0x18001012e
call fcn.18001ab44
mov rcx, qword [rbx + 0x12850]
mov eax, dword [r14]
mov dword [rcx], eax
add dword [rbx + 0x1c], 4
cmp dword [r14], 0
je 0x1800104e2
mov dword [rbx + 0x1287c], 0
mov dword [r14], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
call fcn.18000f780
lea r11, [rbx + 0x9070]
movabs rdx, 0x100000001000
mov eax, reloc.WS2_32.dll_recv
nop dword [rax + rax]
mov qword [r11], rdx
mov qword [r11 + 8], rdx
mov qword [r11 + 0x10], rdx
add r11, 0x40
dec rax
mov qword [r11 - 0x28], rdx
mov qword [r11 - 0x20], rdx
mov qword [r11 - 0x18], rdx
mov qword [r11 - 0x10], rdx
mov qword [r11 - 8], rdx
jne 0x180010190
lea rax, [rbx + 0x9470]
mov ecx, 0x100
nop word [rax + rax]
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
add rax, 0x40
dec rcx
mov qword [rax - 0x28], rdx
mov qword [rax - 0x20], rdx
mov qword [rax - 0x18], rdx
mov qword [rax - 0x10], rdx
mov qword [rax - 8], rdx
jne 0x1800101d0
mov ebp, 0xfc4
lea rcx, [rbx + 0x24]
mov dl, 0x20
mov r8, rbp
xor edi, edi
call fcn.18001ea20
cmp byte [rbx + 0x12834], dil
jne 0x180010243
xor r13d, r13d
xor esi, esi
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
call fcn.18001b294
cmp eax, 0xffffffff
je 0x18001028a
mov byte [rsi + rbx + 0xfe8], al
inc rsi
inc r13d
cmp rsi, 0x3c
jl 0x180010220
jmp 0x18001028a
xor r13d, r13d
xor r9d, r9d
nop dword [rax]
movsxd r8, dword [rbx + 0x1287c]
cmp r8d, dword [rbx + 0x12878]
jge 0x18001028a
mov rax, qword [rbx + 0x12870]
inc r9
inc r13d
cmp r9, 0x3c
movzx edx, byte [rax + r8]
lea eax, [r8 + 1]
mov dword [rbx + 0x1287c], eax
mov byte [r9 + rbx + 0xfe7], dl
jl 0x180010250
mov dword [r14], r13d
mov esi, 0xfc3
mov edx, esi
mov rcx, rbx
call fcn.18000f450
dec esi
cmp esi, 0xf88
jge 0x180010292
mov edx, ebp
mov rcx, rbx
call fcn.18000f450
cmp dword [rbx + 0x1064], r13d
jle 0x1800102c0
mov dword [rbx + 0x1064], r13d
mov edx, dword [rbx + 0x1064]
cmp edx, 2
jg 0x1800102e7
movsxd rax, ebp
mov dword [rbx + 0x1064], 1
mov rcx, rbx
movzx edx, byte [rax + rbx + 0x24]
call fcn.18000f950
jmp 0x180010305
add edx, 0xfd
mov rcx, rbx
call fcn.18000f950
mov edx, dword [rbx + 0x1060]
mov rcx, rbx
dec edx
call fcn.18000fac0
cmp byte [rbx + 0x12834], 0
mov r12d, dword [rbx + 0x1064]
jne 0x180010379
xor esi, esi
test r12d, r12d
jle 0x1800103e6
mov rcx, qword [rbx + 8]
call fcn.18001b294
mov r10d, eax
cmp eax, 0xffffffff
je 0x1800103e6
mov edx, edi
mov rcx, rbx
call fcn.18000f640
cmp edi, 0x3b
movsxd r11, edi
mov byte [r11 + rbx + 0x24], r10b
jge 0x180010354
mov byte [r11 + rbx + 0x1024], r10b
lea eax, [rbp + 1]
inc edi
mov rcx, rbx
and eax, 0xfff
and edi, 0xfff
mov edx, eax
mov ebp, eax
call fcn.18000f450
inc esi
cmp esi, r12d
jl 0x180010320
jmp 0x1800103e6
xor esi, esi
test r12d, r12d
jle 0x1800103e6
movsxd rdx, dword [rbx + 0x1287c]
cmp edx, dword [rbx + 0x12878]
jge 0x1800103e6
mov rax, qword [rbx + 0x12870]
mov rcx, rbx
movzx r10d, byte [rax + rdx]
lea eax, [rdx + 1]
mov edx, edi
mov dword [rbx + 0x1287c], eax
call fcn.18000f640
cmp edi, 0x3b
movsxd r11, edi
mov byte [r11 + rbx + 0x24], r10b
jge 0x1800103c3
mov byte [r11 + rbx + 0x1024], r10b
lea eax, [rbp + 1]
inc edi
mov rcx, rbx
and eax, 0xfff
and edi, 0xfff
mov edx, eax
mov ebp, eax
call fcn.18000f450
inc esi
cmp esi, r12d
jl 0x180010380
mov eax, dword [rbx + 0x20]
add dword [r14], esi
cmp dword [r14], eax
jbe 0x1800103f9
add eax, 0x400
mov dword [rbx + 0x20], eax
cmp esi, r12d
jge 0x180010436
sub r12d, esi
mov esi, r12d
mov edx, edi
mov rcx, rbx
call fcn.18000f640
lea eax, [rbp + 1]
inc edi
and eax, 0xfff
and edi, 0xfff
sub r13d, 1
mov ebp, eax
je 0x180010430
mov edx, eax
mov rcx, rbx
call fcn.18000f450
sub rsi, 1
jne 0x180010404
test r13d, r13d
jg 0x1800102b0
inc dword [rbx + 0xd480]
cmp dword [rbx + 0xd474], 0x8000
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
jae 0x18001049e
xor edx, edx
mov rcx, rbx
call fcn.18000f290
cmp dword [rbx + 0xd480], 0
jle 0x1800104cd
nop dword [rax + rax]
mov edx, 1
mov rcx, rbx
call fcn.18000f290
dec dword [rbx + 0xd480]
cmp dword [rbx + 0xd480], 0
jg 0x180010480
jmp 0x1800104cd
mov edx, 1
mov rcx, rbx
call fcn.18000f290
cmp dword [rbx + 0xd480], 0
jle 0x1800104cd
xor edx, edx
mov rcx, rbx
call fcn.18000f290
dec dword [rbx + 0xd480]
cmp dword [rbx + 0xd480], 0
jg 0x1800104b4
mov edi, 7
xor edx, edx
mov rcx, rbx
call fcn.18000f290
sub rdi, 1
jne 0x1800104d2
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret