Function at 0x1400c4014
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1401006f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r8, qword [0x1401360d8]
mov rbx, qword [0x140134c50]
xor eax, eax
or rcx, 0xffffffffffffffff
mov r13d, 0xf4240
mov rdi, r8
mov dword [0x1401360f4], r13d
repne scasw ax, word [rdi]
lea esi, [rax + 1]
not rcx
mov r12d, eax
mov dword [rsp + 0x28], eax
sub rcx, rsi
mov r14d, eax
mov ebp, eax
mov rdi, rcx
cmp rcx, 4
jb 0x1400c40e0
cmp word [rbx + rcx*2 - 8], 0x2e
jne 0x1400c40e0
movzx ecx, word [rbx + rcx*2 - 6]
call fcn.1400c92a4
cmp eax, 0x5a
jne 0x1400c40d9
cmp word [rbx + rdi*2 - 4], 0x30
jb 0x1400c40d9
cmp word [rbx + rdi*2 - 4], 0x39
ja 0x1400c40d9
cmp word [rbx + rdi*2 - 2], 0x30
jb 0x1400c40d9
cmp word [rbx + rdi*2 - 2], 0x39
ja 0x1400c40d9
cmp rdi, 4
je 0x1400c40cf
cmp word [rbx + rdi*2], 0x30
jb 0x1400c40d9
cmp word [rbx + rdi*2], 0x39
ja 0x1400c40d9
mov eax, 3
jmp 0x1400c4c31
mov r8, qword [0x1401360d8]
lea rdx, [0x1400e3698]
mov rcx, r8
call fcn.1400c9638
xor edi, edi
mov qword [0x1401360d0], rax
cmp rax, rdi
jne 0x1400c411d
mov r8, qword [0x1401360d8]
lea rcx, [0x140134b90]
xor edx, edx
call fcn.1400334fc
mov ecx, dword [0x1400fe734]
jmp 0x1400c4407
mov rdx, 0xfffffffffffc0000
mov r8d, 2
mov rcx, rax
call fcn.1400c9b9c
cmp eax, edi
je 0x1400c4183
mov rcx, qword [0x1401360d0]
xor r8d, r8d
xor edx, edx
call fcn.1400c9b9c
cmp eax, edi
je 0x1400c4183
mov rcx, qword [0x1401360d0]
call fcn.1400c8d40
mov ecx, 0x205
mov qword [0x1401360d0], rdi
call fcn.140076080
mov r8, qword [0x1401360d8]
xor ecx, ecx
mov rdx, rax
call fcn.1400b1ef4
mov eax, 0xb
jmp 0x1400c4c31
mov rcx, qword [0x1401360d0]
lea rdx, [0x1400ebfb8]
call fcn.1400c0f14
cmp eax, edi
je 0x1400c42f1
mov rcx, qword [0x1401360d0]
call fcn.1400c9edc
mov rcx, qword [0x1401360d0]
lea rdx, [0x1400ebfb8]
mov rdi, rax
call fcn.1400c0f14
xor ebx, ebx
jmp 0x1400c41df
call fcn.1400c9edc
mov rcx, qword [0x1401360d0]
lea rdx, [0x1400ebfb8]
mov rdi, rax
call fcn.1400c0f14
mov rcx, qword [0x1401360d0]
cmp eax, ebx
jne 0x1400c41c4
xor r8d, r8d
mov rdx, rdi
call fcn.1400c9b9c
xor edi, edi
cmp eax, edi
jne 0x1400c414b
mov r9, qword [0x1401360d0]
lea r8d, [rdi + 0x12]
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.1400c9ab0
cmp rax, 0x12
jb 0x1400c42f1
movzx eax, byte [rsp + 0x31]
shl ax, 8
movzx edx, ax
movzx eax, byte [rsp + 0x30]
or edx, eax
add edx, esi
mov dword [0x1401360f4], edx
lea eax, [rdx - 1]
mov dword [0x1401360f8], eax
cmp edx, 0x10000
jae 0x1400c426f
movzx eax, byte [rsp + 0x33]
shl ax, 8
movzx ecx, ax
movzx eax, byte [rsp + 0x32]
or ecx, eax
cmp ecx, edx
jbe 0x1400c426f
mov dword [0x1401360f4], edi
jmp 0x1400c42ff
movzx ecx, byte [rsp + 0x41]
movzx eax, byte [rsp + 0x40]
shl cx, 8
or cx, ax
mov word [0x140134c28], cx
je 0x1400c42f7
movzx eax, cx
add eax, esi
movsxd rcx, eax
call fcn.1400c799c
mov qword [0x140136190], rax
cmp rax, rdi
jne 0x1400c42ac
mov eax, 4
jmp 0x1400c4c31
movzx edx, word [0x140134c28]
mov r9, qword [0x1401360d0]
mov r8, rsi
mov rcx, rax
call fcn.1400c9ab0
cmp rax, rsi
je 0x1400c42df
mov rcx, qword [0x140136190]
call fcn.1400c7040
mov qword [0x140136190], rdi
jmp 0x1400c42f1
movzx ecx, word [0x140134c28]
mov rax, qword [0x140136190]
mov byte [rcx + rax], dil
mov edx, dword [0x1401360f4]
cmp edx, edi
jne 0x1400c43f0
mov rcx, qword [0x1401360d0]
xor r8d, r8d
xor edx, edx
call fcn.1400c9b9c
mov rcx, qword [0x1401360d0]
cmp eax, edi
jne 0x1400c4152
call fcn.1400c0e58
xor ebx, ebx
mov edi, eax
cmp eax, ebx
je 0x1400c43e4
mov rcx, qword [0x1401360d0]
call fcn.1400c9edc
mov qword [0x140136100], rax
cmp rax, 4
jne 0x1400c43b7
lea rdx, [0x1400ebfc8]
lea rcx, [0x14019f3a4]
call fcn.1400c0f94
cmp eax, ebx
je 0x1400c43b9
mov rcx, qword [0x1401360d0]
call fcn.1400c0e58
mov edi, eax
mov edx, dword [0x1401360f4]
cmp edi, ebx
je 0x1400c43ee
xor edi, edi
cmp edx, edi
jne 0x1400c43f0
mov rcx, qword [0x1401360d0]
call fcn.1400c9edc
mov qword [0x140136100], rax
cmp rax, 8
jne 0x1400c43e6
lea rdx, [0x1400ebfc0]
lea rcx, [0x14019f3a4]
call fcn.1400c0f94
mov edx, dword [0x1401360f4]
cmp eax, edi
cmovne edx, esi
jmp 0x1400c43f0
ja 0x1400c436e
lea rdx, [0x1400ebfc8]
lea rcx, [0x14019f3a4]
call fcn.1400c0f94
mov edx, dword [0x1401360f4]
mov ecx, 0x1869f
cmp eax, ebx
cmovne edx, ecx
mov dword [0x1401360f4], edx
jmp 0x1400c4374
xor edi, edi
mov edx, dword [0x1401360f4]
jmp 0x1400c43f0
xor edi, edi
mov ecx, dword [0x1400fe734]
cmp ecx, edi
cmove edx, esi
cmp edx, r13d
cmove edx, esi
mov dword [0x1401360f4], edx
cmp ecx, edi
je 0x1400c4423
mov rcx, qword [0x1401360d0]
cmp rcx, rdi
je 0x1400c4423
call fcn.1400c8d40
mov qword [0x1401360d0], rdi
mov eax, edi
mov dword [0x1401360f8], eax
cmp dword [0x1401360f4], edi
jbe 0x1400c4c2f
mov r15, qword [rsp + 0x28]
mov esi, 0xb
mov rcx, qword [0x1401360d8]
mov edx, eax
call fcn.14003e3c8
mov r13, rax
mov rax, qword [0x1401360d0]
cmp rax, rdi
jne 0x1400c44da
mov rcx, r13
jmp 0x1400c449d
mov ecx, dword [0x1401360f8]
call fcn.14003ec84
cmp eax, 9
je 0x1400c4c63
cmp eax, 2
je 0x1400c4c5c
cmp eax, 3
je 0x1400c44b7
mov edx, dword [0x1401360f8]
mov rcx, qword [0x1401360d8]
call fcn.14003e3c8
mov r13, rax
mov rcx, rax
lea rdx, [0x1400e3698]
call fcn.1400c9638
mov qword [0x1401360d0], rax
cmp rax, rdi
je 0x1400c4463
jmp 0x1400c44c9
mov rax, qword [0x1401360d0]
mov r12d, 1
mov dword [rsp + 0x28], r12d
cmp r12d, edi
je 0x1400c44da
mov r12d, edi
mov dword [rsp + 0x28], edi
jmp 0x1400c4c15
mov rcx, rax
call fcn.1400c0e58
cmp eax, edi
je 0x1400c4bef
mov rcx, qword [0x1401360d0]
call fcn.1400c9edc
lea rdx, [0x1400ebfb8]
lea rcx, [0x14019f3a4]
mov qword [0x140136100], rax
call fcn.1400c0f94
cmp eax, edi
jne 0x1400c4bd6
lea rdx, [0x1400ebfa0]
lea rcx, [0x14019f3a4]
call fcn.1400c0f94
cmp eax, edi
jne 0x1400c4bd6
lea rdx, [0x1400ebfa8]
lea rcx, [0x14019f3a4]
call fcn.1400c0f94
cmp eax, edi
jne 0x1400c4bd6
lea rdx, [0x1400ebfc0]
lea rcx, [0x14019f3a4]
call fcn.1400c0f94
cmp eax, edi
je 0x1400c465d
mov ecx, 0xb8
call fcn.1400c799c
mov rbx, rax
cmp rax, rdi
je 0x1400c42a2
mov rcx, rax
mov word [rax], di
mov word [rax + 2], di
mov word [rax + 4], di
mov word [rax + 6], di
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rdi
mov word [rax + 0x20], di
mov word [rax + 0x24], di
mov word [rax + 0x26], di
mov dword [rax + 0x28], edi
mov word [rax + 0x2c], di
mov dword [rax + 0x38], edi
mov qword [rax + 0x30], rdi
mov qword [rax + 0x58], rdi
mov qword [rax + 0x50], rdi
mov qword [rax + 0x48], rdi
mov qword [rax + 0x60], rdi
mov qword [rax + 0x40], rdi
mov qword [rax + 0x68], rdi
mov qword [rax + 0x70], rdi
mov qword [rax + 0x80], rdi
mov qword [rax + 0x78], rdi
call fcn.1400c315c
mov rcx, qword [rbx + 0x70]
mov r14d, eax
call fcn.1400806c0
mov ecx, 0x268
mov rdi, rax
call fcn.140076080
mov rdx, rdi
mov rcx, rax
call fcn.1400a3744
call fcn.140053a58
xor edi, edi
cmp byte [0x14014aa58], dil
jne 0x1400c4c74
mov ebp, edi
cmp r14d, 2
je 0x1400c4bea
cmp r14d, edi
jne 0x1400c4bd6
inc qword [0x140134c30]
cmp qword [0x140136180], rdi
lea rax, [0x140136180]
cmovne rax, r15
lea r15, [rbx + 0xb0]
mov qword [rax], rbx
mov qword [r15], rdi
jmp 0x1400c4bd6
lea rdx, [0x1400ebfb0]
lea rcx, [0x14019f3a4]
call fcn.1400c0f94
cmp eax, edi
je 0x1400c4bd6
cmp ebp, edi
jne 0x1400c46f6
mov rdx, qword [0x140134c30]
cmp rdx, rdi
je 0x1400c46f6
mov rcx, rdx
shl rcx, 3
mov rax, rcx
shr rax, 3
cmp rax, rdx
jne 0x1400c42a2
call fcn.1400c799c
mov qword [0x140134c20], rax
cmp rax, rdi
je 0x1400c42a2
mov rcx, qword [0x140136180]
cmp rcx, rdi
je 0x1400c46da
mov qword [rax], rcx
mov rcx, qword [rcx + 0xb0]
add rax, 8
cmp rcx, rdi
jne 0x1400c46c0
mov rax, qword [0x140134c20]
mov rdx, qword [0x140134c30]
lea r9, [0x1400bf80c]
mov r8d, 8
mov rcx, rax
call fcn.1400c73c0
mov r9, qword [0x1401360d0]
mov r12d, 1
lea rcx, [rsp + 0x30]
lea edx, [r12 + 0x29]
mov r8, r12
mov ebp, r12d
mov dword [rsp + 0x20], r12d
call fcn.1400c9ab0
cmp rax, r12
jne 0x1400c4bd6
mov ecx, 0xb8
call fcn.1400c799c
mov rbx, rax
cmp rax, rdi
je 0x1400c42a2
movzx edx, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x30]
movzx edi, byte [rsp + 0x49]
movzx r12d, byte [rsp + 0x4b]
shl dx, 8
shl di, 8
or dx, cx
movzx ecx, byte [rsp + 0x32]
shl r12w, 8
mov word [rax], dx
movzx edx, byte [rsp + 0x33]
shl dx, 8
or dx, cx
movzx ecx, byte [rsp + 0x35]
mov word [rax + 2], dx
movzx eax, byte [rsp + 0x34]
shl cx, 8
or cx, ax
movzx eax, byte [rsp + 0x36]
mov word [rbx + 4], cx
movzx ecx, byte [rsp + 0x37]
shl cx, 8
or cx, ax
movzx eax, byte [rsp + 0x3b]
shl ax, 8
mov word [rbx + 6], cx
movzx edx, ax
movzx eax, byte [rsp + 0x3a]
or edx, eax
movzx eax, byte [rsp + 0x39]
shl ax, 8
shl edx, 0x10
movzx ecx, ax
movzx eax, byte [rsp + 0x38]
or edx, ecx
or edx, eax
movzx eax, byte [rsp + 0x3f]
shl ax, 8
mov dword [rbx + 8], edx
movzx edx, ax
movzx eax, byte [rsp + 0x3e]
or edx, eax
movzx eax, byte [rsp + 0x3d]
shl ax, 8
shl edx, 0x10
movzx ecx, ax
movzx eax, byte [rsp + 0x3c]
or edx, ecx
or edx, eax
movzx eax, byte [rsp + 0x43]
shl ax, 8
mov dword [rbx + 0xc], edx
movzx edx, ax
movzx eax, byte [rsp + 0x42]
or edx, eax
movzx eax, byte [rsp + 0x41]
shl ax, 8
shl edx, 0x10
movzx eax, ax
or rdx, rax
movzx eax, byte [rsp + 0x40]
or rdx, rax
movzx eax, byte [rsp + 0x47]
shl ax, 8
mov qword [rbx + 0x10], rdx
movzx edx, ax
movzx eax, byte [rsp + 0x46]
or edx, eax
movzx eax, byte [rsp + 0x45]
shl ax, 8
shl edx, 0x10
movzx eax, ax
or rdx, rax
movzx eax, byte [rsp + 0x44]
or rdx, rax
movzx eax, byte [rsp + 0x48]
or di, ax
movzx eax, byte [rsp + 0x4a]
mov qword [rbx + 0x18], rdx
or r12w, ax
mov word [rbx + 0x20], di
movzx eax, byte [rsp + 0x4c]
movzx ecx, byte [rsp + 0x4d]
mov word [rbx + 0x24], r12w
shl cx, 8
or cx, ax
movzx eax, byte [rsp + 0x4f]
shl ax, 8
mov word [rbx + 0x26], cx
movzx ecx, ax
movzx eax, byte [rsp + 0x4e]
or ecx, eax
movzx eax, byte [rsp + 0x50]
mov dword [rbx + 0x28], ecx
movzx ecx, byte [rsp + 0x51]
shl cx, 8
or cx, ax
movzx eax, byte [rsp + 0x55]
shl ax, 8
mov word [rbx + 0x2c], cx
movzx edx, ax
movzx eax, byte [rsp + 0x54]
or edx, eax
movzx eax, byte [rsp + 0x53]
shl ax, 8
shl edx, 0x10
movzx ecx, ax
movzx eax, byte [rsp + 0x52]
or edx, ecx
or edx, eax
movzx eax, byte [rsp + 0x59]
shl ax, 8
mov dword [rbx + 0x38], edx
movzx edx, ax
movzx eax, byte [rsp + 0x58]
or edx, eax
movzx eax, byte [rsp + 0x57]
shl ax, 8
shl edx, 0x10
movzx eax, ax
or rdx, rax
movzx eax, byte [rsp + 0x56]
or rdx, rax
xor eax, eax
mov qword [rbx + 0x30], rdx
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rax
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x78], rax
cmp di, ax
je 0x1400c4bd4
movzx eax, di
inc eax
movsxd rcx, eax
call fcn.1400c799c
xor ebp, ebp
mov rdi, rax
mov qword [rbx + 0x60], rax
cmp rax, rbp
je 0x1400c42a2
cmp r12w, bp
je 0x1400c498c
movzx ecx, r12w
inc ecx
movsxd rcx, ecx
call fcn.1400c799c
mov qword [rbx + 0x50], rax
cmp rax, rbp
je 0x1400c42a2
movzx ebp, word [rbx + 0x26]
xor eax, eax
cmp bp, ax
je 0x1400c49b3
movzx eax, bp
inc eax
movsxd rcx, eax
call fcn.1400c799c
xor ecx, ecx
mov qword [rbx + 0x58], rax
cmp rax, rcx
je 0x1400c42a2
movzx edx, word [rbx + 0x20]
mov r9, qword [0x1401360d0]
mov r8d, 1
mov rcx, rdi
call fcn.1400c9ab0
cmp rax, 1
jne 0x1400c4bd0
xor eax, eax
cmp r12w, ax
je 0x1400c4a02
mov r9, qword [0x1401360d0]
mov rcx, qword [rbx + 0x50]
lea r8d, [rax + 1]
movzx edx, r12w
call fcn.1400c9ab0
cmp rax, 1
jne 0x1400c4bd0
xor eax, eax
cmp bp, ax
je 0x1400c4a2a
mov r9, qword [0x1401360d0]
mov rcx, qword [rbx + 0x58]
movzx edx, bp
mov r8d, 1
call fcn.1400c9ab0
cmp rax, 1
jne 0x1400c4bd0
movzx eax, word [rbx + 0x20]
xor ecx, ecx
mov byte [rax + rdi], cl
mov rcx, rdi
call fcn.1400bf8a8
mov rdi, rax
xor eax, eax
cmp rdi, rax
je 0x1400c4bd0
mov ecx, dword [rbx + 8]
cmp dword [rdi + 8], ecx
jne 0x1400c4bd0
mov rax, qword [rbx + 0x58]
movzx ecx, word [rbx]
mov word [rdi + 0x26], bp
mov qword [rdi + 0x58], rax
movzx eax, word [rbx + 0x2c]
mov word [rdi], cx
mov rcx, qword [rbx + 0x50]
mov word [rdi + 0x2c], ax
mov eax, dword [rbx + 0x38]
xor ebp, ebp
mov dword [rdi + 0x38], eax
mov word [rdi + 0x24], r12w
mov qword [rdi + 0x50], rcx
cmp qword [rdi + 0x78], rbp
jne 0x1400c4ab9
mov eax, 0x800
test word [rdi + 4], ax
je 0x1400c4ab1
mov rcx, qword [rdi + 0x60]
call fcn.1400d7af0
mov qword [rdi + 0x78], rax
cmp rax, rbp
jne 0x1400c4ab9
lea ecx, [rbp + 4]
call fcn.1400bd484
jmp 0x1400c4ab9
mov rcx, rdi
call fcn.1400bfd64
movzx eax, word [rdi]
movzx ecx, al
shr ax, 8
cmp ax, bp
jne 0x1400c4ae0
test dword [rdi + 0x38], 0xffff0000
je 0x1400c4af0
cmp ecx, 0x19
je 0x1400c4ae0
cmp ecx, 0x1a
je 0x1400c4ae0
cmp ecx, 0x28
jne 0x1400c4af0
cmp ax, 6
je 0x1400c4af0
cmp ax, si
jne 0x1400c4afd
cmp ecx, 0x32
jne 0x1400c4afd
mov rcx, qword [rdi + 0x60]
mov rdx, rcx
call qword [sym.imp.USER32.dll_OemToCharA]
movzx eax, word [rdi]
movzx ecx, al
shr ax, 8
cmp ax, bp
jne 0x1400c4b24
test dword [rdi + 0x38], 0xffff0000
je 0x1400c4b34
cmp ecx, 0x19
je 0x1400c4b24
cmp ecx, 0x1a
je 0x1400c4b24
cmp ecx, 0x28
jne 0x1400c4b34
cmp ax, 6
je 0x1400c4b34
cmp ax, si
jne 0x1400c4b41
cmp ecx, 0x32
jne 0x1400c4b41
mov rcx, qword [rdi + 0x58]
mov rdx, rcx
call qword [sym.imp.USER32.dll_OemToCharA]
mov rcx, qword [0x1401360c8]
call fcn.1400c9edc
mov rdx, qword [rdi + 0x30]
mov rcx, qword [0x1401360c8]
xor r8d, r8d
mov rbx, rax
call fcn.1400c9b9c
cmp eax, ebp
jne 0x1400c4c90
movzx r8d, word [rdi + 0x22]
mov rdx, qword [rdi + 0x48]
mov ecx, 1
call fcn.1400bfb98
mov ecx, ebp
mov edx, 1
cmp rax, rbp
setne cl
mov dword [0x1401360ac], ecx
mov rcx, rdi
call fcn.1400c2368
mov rcx, qword [0x1401360c8]
xor r8d, r8d
mov rdx, rbx
call fcn.1400c9b9c
xor edi, edi
cmp eax, edi
jne 0x1400c4c7b
mov rcx, qword [0x1401360c8]
call fcn.1400c9edc
cmp rbx, rax
jne 0x1400c4c7b
mov ebp, dword [rsp + 0x20]
jmp 0x1400c4bd6
mov ebp, dword [rsp + 0x20]
xor edi, edi
mov rcx, qword [0x1401360d0]
call fcn.1400c0e58
cmp eax, edi
jne 0x1400c44ea
mov r12d, dword [rsp + 0x28]
mov rcx, qword [0x1401360d0]
cmp rcx, rdi
je 0x1400c4c00
call fcn.1400c8d40
mov rcx, r13
mov qword [0x1401360d0], rdi
call fcn.1400c7040
cmp r14d, 2
je 0x1400c4c2f
mov eax, dword [0x1401360f8]
inc eax
mov dword [0x1401360f8], eax
cmp eax, dword [0x1401360f4]
jb 0x1400c4441
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c6350
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x1400c4c31
lea rcx, [0x140134b90]
mov r8, r13
xor edx, edx
call fcn.1400334fc
mov eax, 9
jmp 0x1400c4c31
mov rcx, qword [0x1401360d0]
call fcn.1400c8d40
mov qword [0x1401360d0], rdi
jmp 0x1400c4ca3
mov rcx, qword [0x1401360d0]
call fcn.1400c8d40
mov qword [0x1401360d0], rbp
mov eax, 0xe
jmp 0x1400c4c31