Function at 0x140055350
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
sub rsp, 0x58
mov r13d, r9d
mov rbp, r8
mov r12, rdx
mov r14, rcx
test r8, r8
jne 0x14005538b
xor eax, eax
mov dword [rcx], 1
mov dword [rcx + 0x10], eax
mov qword [rcx + 8], rax
mov rax, rcx
add rsp, 0x58
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [rsp + 0x80], rbx
xor edx, edx
mov ebx, 2
mov qword [rsp + 0x90], rdi
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test rdi, rdi
jns 0x1400553df
xor eax, eax
mov dword [r14], ebx
mov dword [r14 + 0x10], eax
mov qword [r14 + 8], rax
jmp 0x1400554b3
mov rax, qword [0x14024fa50]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x50], r15
lea r15, [rdi + 1]
mov rcx, r15
call qword [case.0x14003c8e9.0]
mov rsi, rax
test rax, rax
jne 0x14005541c
mov dword [r14 + 0x10], eax
mov dword [r14], 3
mov qword [r14 + 8], rax
jmp 0x1400554a6
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x140055454
mov rax, qword [0x14024fa58]
mov rcx, rsi
call qword [case.0x14003c8e9.0]
xor eax, eax
mov dword [r14], ebx
mov dword [r14 + 0x10], eax
mov qword [r14 + 8], rax
jmp 0x1400554a6
mov eax, dword [rsp + 0xa0]
cmp eax, 8
je 0x14005546d
cmp eax, 4
je 0x14005546d
cmp eax, 7
jne 0x1400554d2
lea ebx, [rax - 2]
mov r15, rdi
mov rax, qword [rsp + 0xa8]
mov r9, rsi
mov qword [rsp + 0x48], rax
mov r8, r12
mov byte [rsp + 0x40], 1
mov rdx, r12
mov byte [rsp + 0x38], 1
mov rcx, r14
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r15
call fcn.1400550f0
mov rsi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rax, r14
mov rdi, qword [rsp + 0x90]
add rsp, 0x58
pop r14
pop r13
pop r12
pop rbp
ret
test eax, eax
je 0x1400554dd
mov ebx, eax
jmp 0x140055834
cmp rdi, 4
jb 0x14005582f
movzx r8d, byte [rsi]
movzx ecx, byte [rsi + 1]
movzx eax, byte [rsi + 2]
movzx edx, byte [rsi + 3]
test r8b, r8b
jne 0x140055540
test cl, cl
jne 0x140055524
cmp al, 0xfe
jne 0x140055517
cmp dl, 0xff
jne 0x14005582f
mov ebx, 6
jmp 0x140055834
test al, al
jne 0x14005582f
cmp dl, 0x3c
jmp 0x140055507
cmp cl, 0x3c
jne 0x14005582f
test al, al
jne 0x140055578
cmp dl, 0x3f
jne 0x140055578
mov ebx, 3
jmp 0x140055834
cmp r8b, 0xff
jne 0x140055569
cmp cl, 0xfe
jne 0x14005582f
test al, al
jne 0x140055834
test dl, dl
jne 0x140055834
mov ebx, 5
jmp 0x140055834
cmp r8b, 0xfe
jne 0x140055582
cmp cl, 0xff
jne 0x14005582f
mov ebx, 3
jmp 0x140055834
cmp r8b, 0xef
je 0x14005582f
cmp r8b, 0x3c
jne 0x14005582f
test cl, cl
je 0x14005554f
cmp cl, 0x3f
jne 0x14005582f
cmp al, 0x78
jne 0x14005582f
cmp dl, 0x6d
jne 0x14005582f
cmp rdi, 6
jb 0x14005582f
cmp byte [rsi + 4], 0x6c
jne 0x14005582f
lfence
movzx eax, byte [rsi + 5]
lea r10, reloc.WS2_32.dll_getservbyname
test byte [rax + r10], 8
je 0x14005582f
mov ebx, 6
cmp rdi, 7
jbe 0x14005582f
mov edx, 1
lea rcx, [rsi + 6]
sub rdx, rsi
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0x3f
je 0x14005582f
cmp al, 0x65
jne 0x140055615
cmp byte [rcx + 1], 0x6e
je 0x140055629
inc rcx
inc rbx
lea rax, [rdx + rcx]
cmp rax, rdi
jb 0x140055600
jmp 0x14005582f
cmp rbx, rdi
jae 0x14005582f
lea rcx, [rbx + 1]
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], 0x6e
jne 0x14005582f
inc rcx
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], 0x63
jne 0x14005582f
inc rcx
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], 0x6f
jne 0x14005582f
inc rcx
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], 0x64
jne 0x14005582f
inc rcx
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], 0x69
jne 0x14005582f
inc rcx
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], 0x6e
jne 0x14005582f
inc rcx
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], 0x67
jne 0x14005582f
inc rcx
cmp rcx, rdi
jae 0x14005582f
lfence
nop dword [rax]
movzx eax, byte [rcx + rsi]
test byte [rax + r10], 8
je 0x1400556f8
inc rcx
cmp rcx, rdi
jb 0x1400556e0
jmp 0x14005582f
cmp al, 0x3d
jne 0x14005582f
inc rcx
cmp rcx, rdi
jae 0x140055727
lfence
nop dword [rax + rax]
movzx eax, byte [rcx + rsi]
test byte [rax + r10], 8
je 0x1400557dc
inc rcx
cmp rcx, rdi
jb 0x140055710
mov r8b, 0x27
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], r8b
jne 0x14005582f
inc rcx
mov r9, rcx
lea rdx, [rcx + rsi]
cmp rcx, rdi
jae 0x140055763
lfence
nop
movzx eax, byte [rcx + rsi]
test byte [rax + r10], 0x40
je 0x140055763
inc rcx
cmp rcx, rdi
jb 0x140055750
mov rax, rcx
sub rax, r9
cmp rcx, rdi
jae 0x14005582f
cmp byte [rcx + rsi], r8b
jne 0x14005582f
cmp rax, 0xa
jne 0x1400557ed
movzx eax, byte [rdx]
or al, 0x20
cmp al, 0x69
jne 0x14005582f
movzx eax, byte [rdx + 1]
or al, 0x20
cmp al, 0x73
jne 0x14005582f
movzx eax, byte [rdx + 2]
or al, 0x20
cmp al, 0x6f
jne 0x14005582f
cmp byte [rdx + 3], 0x2d
jne 0x14005582f
cmp byte [rdx + 4], 0x38
jne 0x14005582f
cmp byte [rdx + 5], 0x38
jne 0x14005582f
cmp byte [rdx + 6], 0x35
jne 0x14005582f
cmp byte [rdx + 7], 0x39
jne 0x14005582f
cmp byte [rdx + 8], 0x2d
jne 0x14005582f
cmp byte [rdx + 9], 0x31
jne 0x14005582f
mov ebx, 9
jmp 0x140055834
cmp al, 0x22
jne 0x140055727
movzx r8d, al
jmp 0x140055733
cmp rax, 6
jne 0x14005582f
movzx eax, byte [rdx]
or al, 0x20
cmp al, 0x6c
jne 0x14005582f
movzx eax, byte [rdx + 1]
or al, 0x20
cmp al, 0x61
jne 0x14005582f
movzx eax, byte [rdx + 2]
or al, 0x20
cmp al, 0x74
jne 0x14005582f
movzx eax, byte [rdx + 3]
or al, 0x20
cmp al, 0x69
jne 0x14005582f
movzx eax, byte [rdx + 4]
or al, 0x20
cmp al, 0x6e
jne 0x14005582f
cmp byte [rdx + 5], 0x31
mov ebx, 9
je 0x140055834
mov ebx, 1
cmp ebx, 1
jne 0x14005546d
mov byte [rdi + rsi], 0
jmp 0x140055470