Function at 0x140004860
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x698
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rsi, rcx
xor ebp, ebp
add rcx, 0x10
call fcn.140004bc0
lea rcx, str.LOCALAPPDATA
call fcn.14006a620
test rax, rax
je 0x140004b93
mov qword [rsp + 0x6c0], rbx
mov rdx, rax
lea rbx, [rsi + 0x90]
mov rcx, rbx
call fcn.140009290
lea r9, [rsi + 0x154]
mov rcx, rsi
lea r8, [rsi + 0x150]
lea rdx, [rsi + 0x110]
call fcn.1400076d0
lea rcx, [rsi + 0x130]
mov rax, qword [rcx + 0x18]
cmp rax, 9
jb 0x140004926
mov qword [rsp + 0x690], rdi
mov rdi, rcx
cmp rax, 0xf
jbe 0x1400048fb
mov rdi, qword [rcx]
mov qword [rcx + 0x10], 9
lea rdx, str.5.5.236.0
mov rcx, rdi
mov r8d, 9
call fcn.14008afe0
mov byte [rdi + 9], bpl
mov rdi, qword [rsp + 0x690]
jmp 0x140004937
lea r9, str.5.5.236.0
mov edx, 9
call fcn.14000aa60
cmp qword [rbx + 0x18], 7
jbe 0x140004941
mov rbx, qword [rbx]
lea rcx, [rsp + 0x70]
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140004950
lea rcx, [rsp + 0x70]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x140004970
lea r8, str.OneStart.aiOneStartUpdate
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140004990
lea rcx, [rsp + 0x70]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x1400049b0
lea r8, str.intermediate.dat
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400049d0
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
lea rcx, [rsp + 0x280]
mov r8d, 0x400
mov rbx, rax
call fcn.14008b680
cmp rbx, 0xffffffffffffffff
je 0x140004a93
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov r8d, 0x3ff
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x280]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x60]
mov eax, ebp
test r8d, r8d
je 0x140004a93
nop word [rax + rax]
mov edx, eax
movzx ecx, byte [rsp + rdx + 0x280]
cmp cl, 0xd
je 0x140004b36
cmp cl, 0xa
je 0x140004b36
inc eax
cmp eax, r8d
jb 0x140004a70
xorps xmm0, xmm0
lea rax, [rsp + 0x280]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
inc r8
cmp byte [rax + r8], bpl
jne 0x140004ab3
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x40]
call fcn.140002820
lea rax, [rsp + 0x40]
lea rbx, [rsi + 0xf0]
cmp rbx, rax
je 0x140004b4c
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140004b19
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140004b14
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004bad
mov rcx, r8
call fcn.140011df0
movups xmm0, xmmword [rsp + 0x40]
mov edx, reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], bpl
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x140004b51
cmp rdx, 0x400
jae 0x140004bb3
mov byte [rsp + rdx + 0x280], bpl
jmp 0x140004a93
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140004b85
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b80
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004bad
call fcn.140011df0
mov rbx, qword [rsp + 0x6c0]
mov al, 1
mov byte [rsi + 8], 1
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140011af0
add rsp, 0x698
pop rsi
pop rbp
ret
call fcn.140069490
int3
call fcn.140011c18
int3