Function at 0x140010710
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 8], rax
mov r14, rdx
mov r15, rcx
cmp word [0x14003f7f0], 0
jne 0x1400107b2
movsx rdx, word [0x14003ee64]
lea r9, [0x14000d700]
mov r8d, 0xa
call qword [sym.imp.MSVCR120.dll_qsort]
xor esi, esi
movzx r8d, si
cmp word [r15 + 8], 1
jbe 0x140010795
inc r8w
movsx rax, r8w
lea rdx, [rax + rax*4]
cmp word [r15 + rdx*2 + 8], 1
ja 0x140010780
mov word [0x14003ee64], r8w
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_fclose]
lea rcx, str.tmp1cod.dat
jmp 0x140010af5
xor esi, esi
movzx edi, si
cmp si, word [0x14003ee64]
jge 0x140010888
lea rbx, [rcx + 4]
nop dword [rax + rax]
movzx r8d, word [rbx - 4]
test r8w, r8w
jne 0x1400107f6
cmp word [rbx - 2], si
jne 0x1400107f6
cmp word [rbx], si
jne 0x1400107f6
cmp word [rbx + 2], si
jne 0x1400107f6
cmp word [rbx + 4], si
je 0x140010875
movzx eax, word [rbx + 2]
movzx ecx, word [rbx]
movzx edx, word [rbx - 2]
movzx r9d, r8w
movzx r8d, word [rbx + 4]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._04x__04x__04x__04x__04x_r_n
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCR120.dll_sprintf]
test eax, eax
js 0x14001087e
movzx ecx, si
nop
movsx rax, cx
lea rdx, [rbp - 0x30]
add rdx, rax
movzx eax, byte [rdx]
test al, al
je 0x14001084f
not al
mov byte [rdx], al
inc cx
cmp cx, 0x32
jl 0x140010830
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_fprintf]
test eax, eax
js 0x14001087e
add rbx, 0xa
inc di
cmp di, word [0x14003ee64]
jge 0x140010888
jmp 0x1400107d0
mov word [0x14003ee64], di
jmp 0x140010888
mov eax, 1
jmp 0x140010b13
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_fclose]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call fcn.14002a1d0
test eax, eax
jne 0x14001087e
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140028fd0
test eax, eax
jne 0x14001087e
lea rcx, str.tmp1cod.dat
call qword [sym.imp.MSVCR120.dll__unlink]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call fcn.14002a000
test eax, eax
jne 0x14001087e
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140028fd0
test eax, eax
jne 0x14001087e
lea rcx, str.tmp1cod.srt
call qword [sym.imp.MSVCR120.dll__unlink]
lea rcx, str.tmp1cod.dat
call qword [sym.imp.MSVCR120.dll__unlink]
mov word [0x14003ee64], si
mov rcx, rsi
lea r13, str.tmp1cod.frs
nop
movzx eax, byte [rcx + r13]
mov byte [rbp + rcx - 0x50], al
lea rcx, [rcx + 1]
test al, al
jne 0x140010940
mov ecx, 0x10
call qword [sym.imp.mfc120u.dll_Ordinal_1484]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001099c
mov word [rax], si
mov qword [rax + 8], rsi
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x14001099f
inc eax
movsxd rcx, eax
call qword [sym.imp.mfc120u.dll_Ordinal_1484]
mov qword [rdi + 8], rax
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x14001099f
mov rdi, rsi
mov ebx, 1
mov edx, ebx
mov rcx, rdi
call fcn.14002ab70
mov r12, rax
test rax, rax
jne 0x1400109be
movzx eax, bx
jmp 0x140010b13
test rdi, rdi
je 0x1400109db
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400109d2
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
mov rcx, rdi
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
movzx r14d, si
cmp si, word [0x14003ee64]
jge 0x140010aea
lea rdi, [r15 + 4]
lea r15, [0x1400310a0]
nop word [rax + rax]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x1a
lea rdx, [rbp - 0x70]
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140010a51
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140010a35
mov eax, eax
mov ecx, dword [r15 + rax*4]
jmp 0x140010a3a
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], 0
mov rcx, rsi
nop dword [rax]
nop dword [rax + rax]
not byte [rbp + rcx - 0x70]
movzx eax, byte [rbp + rcx - 0x6f]
not al
mov byte [rbp + rcx - 0x6f], al
add rcx, 2
cmp rcx, 0x1a
jl 0x140010a60
cmp dword [rsp + 0x40], 0x1a
jne 0x1400109b6
lea rax, [rdi + 2]
lea rcx, [rdi - 2]
lea r9, [rdi - 4]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
lea r8, [rdi + 4]
lea rdx, str._04x__04x__04x__04x__04x_r_n
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCR120.dll_sscanf]
cmp eax, 5
jne 0x1400109b6
cmp word [rdi + 4], bx
je 0x140010ae2
add rdi, 0xa
inc r14w
cmp r14w, word [0x14003ee64]
lea r15, [0x1400310a0]
jl 0x140010a00
jmp 0x140010aea
mov word [0x14003ee64], r14w
mov rcx, r12
call fcn.14002a9e0
mov rcx, r13
call qword [sym.imp.MSVCR120.dll__unlink]
mov eax, 0xfa0
cmp word [0x14003ee64], ax
jle 0x140010b10
mov word [0x14003ee64], ax
movzx eax, si
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.14002c960
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret