Function at 0x1401497f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
push r14
mov eax, 0x2c90
call fcn.1403066b0
sub rsp, rax
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x2c70], rax
mov rax, rdx
mov r14, rcx
lea rdx, [0x140327fe8]
mov rcx, rax
mov r12, r8
call sub.MSVCR90.dll_fopen
mov rbx, rax
test rax, rax
jne 0x14014983d
lea eax, [rbx + 1]
jmp 0x140149ae5
xor edx, edx
mov qword [rsp + 0x2cc0], rbp
mov rcx, rax
lea r8d, [rdx + 2]
mov qword [rsp + 0x2cc8], rsi
mov qword [rsp + 0x2c80], r13
call sub.MSVCR90.dll_fseek
mov rcx, rbx
call sub.MSVCR90.dll_ftell
lea r9, [rsp + 0x220]
lea r8, [rsp + 0x38]
mov ebp, eax
lea rax, [rsp + 0x30]
xor esi, esi
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r13d, esi
call fcn.140149320
test eax, eax
jne 0x1401498c0
lea edx, [rsi - 0x16]
lea r8d, [rsi + 2]
lea rcx, [rsp + 0x38]
lea r13d, [rsi + 1]
call fcn.1401491c0
lea r8, [rsp + 0x68]
lea edx, [rsi + 0x16]
lea rcx, [rsp + 0x38]
call fcn.140149270
jmp 0x1401498e4
lea edx, [rbp - 0x16]
xor r8d, r8d
mov rcx, rbx
call sub.MSVCR90.dll_fseek
mov edx, 1
lea rcx, [rsp + 0x68]
lea r8d, [rdx + 0x15]
mov r9, rbx
call sub.MSVCR90.dll_fread
cmp dword [rsp + 0x68], 0x6054b50
je 0x140149900
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, 1
jmp 0x140149acd
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x2c88], rdi
xor eax, eax
mov rdi, r12
mov r8d, esi
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
je 0x14014994e
lea rax, [rsp + 0x340]
lea rdx, [rsp + 0x340]
sub r12, rax
movzx eax, byte [r12 + rdx]
mov byte [rdx], al
cmp al, 0x5c
jne 0x140149940
mov byte [rdx], 0x2f
inc r8d
inc rdx
movsxd rax, r8d
cmp rax, rcx
jb 0x140149932
movsxd rax, r8d
mov byte [rsp + rax + 0x340], sil
test r13d, r13d
je 0x140149973
lea rcx, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
call fcn.1401491c0
mov ebp, dword [rsp + 0x30]
jmp 0x14014998e
mov edx, ebp
xor r8d, r8d
mov rcx, rbx
sub edx, dword [rsp + 0x74]
sub edx, 0x16
call sub.MSVCR90.dll_fseek
sub ebp, dword [rsp + 0x74]
sub ebp, 0x16
cmp si, word [rsp + 0x72]
jae 0x140149aa9
nop dword [rax]
test r13d, r13d
je 0x1401499e8
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov edx, 0x2e
call fcn.140149270
movzx edx, word [rsp + 0x9c]
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x38]
call fcn.140149270
movzx edx, word [rsp + 0x9c]
mov byte [rsp + rdx + 0x230], 0
jmp 0x140149a33
mov edx, 1
lea rcx, [rsp + 0x80]
mov r9, rbx
lea r8d, [rdx + 0x2d]
call sub.MSVCR90.dll_fread
movzx r8d, word [rsp + 0x9c]
lea rcx, [rsp + 0x230]
mov r9, rbx
mov edx, 1
call sub.MSVCR90.dll_fread
movzx edx, word [rsp + 0x9c]
mov byte [rsp + rdx + 0x230], 0
lea ebp, [rbp + rdx + 0x2e]
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x230]
call sub.MSVCR90.dll__stricmp
test eax, eax
je 0x140149b02
test r13d, r13d
je 0x140149a79
movzx edx, word [rsp + 0xa0]
movzx eax, word [rsp + 0x9e]
lea rcx, [rsp + 0x38]
add edx, eax
mov r8d, 1
call fcn.1401491c0
jmp 0x140149a9a
movzx ecx, word [rsp + 0xa0]
movzx eax, word [rsp + 0x9e]
xor r8d, r8d
add ebp, eax
add ebp, ecx
mov rcx, rbx
mov edx, ebp
call sub.MSVCR90.dll_fseek
movzx eax, word [rsp + 0x72]
inc esi
cmp esi, eax
jl 0x1401499a0
test r13d, r13d
je 0x140149ab8
lea rcx, [rsp + 0x38]
call fcn.1401492e0
mov rcx, rbx
call sub.MSVCR90.dll_fclose
mov eax, 1
mov rdi, qword [rsp + 0x2c88]
mov rsi, qword [rsp + 0x2cc8]
mov rbp, qword [rsp + 0x2cc0]
mov r13, qword [rsp + 0x2c80]
mov rcx, qword [rsp + 0x2c70]
xor rcx, rsp
call fcn.140291ec0
add rsp, 0x2c90
pop r14
pop r12
pop rbx
ret
mov edx, dword [rsp + 0xaa]
xor r8d, r8d
mov rcx, rbx
call sub.MSVCR90.dll_fseek
mov edx, 1
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x1d]
mov r9, rbx
call sub.MSVCR90.dll_fread
test r13d, r13d
je 0x140149b6e
mov r9d, dword [rsp + 0x30]
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x110]
add r9d, 0x100
mov r8d, recvfrom
call fcn.14014a320
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x110]
mov r8d, 0x1e
call fcn.14014a410
movzx r8d, word [rsp + 0x62]
lea rcx, [rsp + 0x450]
mov r9, rbx
mov edx, 1
call sub.MSVCR90.dll_fread
test r13d, r13d
je 0x140149ba9
movzx r8d, word [rsp + 0x62]
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x110]
call fcn.14014a410
movzx eax, word [rsp + 0x62]
movzx edx, word [rsp + 0x64]
mov r8d, 1
mov rcx, rbx
mov byte [rsp + rax + 0x450], 0
call sub.MSVCR90.dll_fseek
mov edx, dword [rsp + 0x5e]
test edx, edx
jne 0x140149bd9
test r13d, r13d
jmp 0x140149aac
mov rcx, r14
call fcn.140149000
movzx ecx, word [rsp + 0x50]
test cx, cx
jne 0x140149c05
mov r8d, dword [rsp + 0x5a]
mov rcx, qword [r14]
mov r9, rbx
mov edx, 1
call sub.MSVCR90.dll_fread
jmp 0x140149cc9
cmp cx, 8
jne 0x140149ab8
xor edx, edx
lea rcx, [rsp + 0xb0]
lea r8d, [rdx + 0x58]
call sub.MSVCR90.dll_memset
mov r9d, 0x58
lea r8, str.1.2.11
lea edx, [r9 - 0x67]
lea rcx, [rsp + 0xb0]
call fcn.14013cbb0
mov eax, dword [rsp + 0x5e]
mov esi, dword [rsp + 0x5a]
mov dword [rsp + 0xc8], eax
mov rax, qword [r14]
mov qword [rsp + 0xc0], rax
test esi, esi
je 0x140149cbc
mov ebp, 0x2710
nop word [rax + rax]
mov edi, esi
cmp esi, ebp
lea rcx, [rsp + 0x560]
cmovg edi, ebp
mov r9, rbx
mov edx, 1
movsxd r8, edi
call sub.MSVCR90.dll_fread
lea rax, [rsp + 0x560]
lea rcx, [rsp + 0xb0]
mov edx, 2
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], edi
call fcn.14013cd00
sub esi, edi
jne 0x140149c70
lea rcx, [rsp + 0xb0]
call fcn.1401400e0
mov r8d, dword [rsp + 0x5e]
mov rdx, qword [r14]
xor ecx, ecx
call fcn.140144600
cmp eax, dword [rsp + 0x56]
jne 0x140149ab8
test r13d, r13d
je 0x140149cf1
lea rcx, [rsp + 0x38]
call fcn.1401492e0
mov rcx, rbx
call sub.MSVCR90.dll_fclose
xor eax, eax
jmp 0x140149ac5