Function at 0x140002a10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x740]
sub rsp, 0x840
mov rax, qword [0x1400391d8]
xor rax, rsp
mov qword [rbp + 0x730], rax
mov r15, rdx
mov r13, rcx
mov qword [rsp + 0x48], rcx
mov r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x140002a55
xor esi, esi
mov r8, r15
mov edx, 0x104
lea rcx, [rbp + 0x310]
cmp rax, rdx
jae 0x140002a7c
call fcn.140010074
jmp 0x140002a8e
mov r9d, 0x103
call fcn.14000f948
mov word [rbp + 0x516], si
lea rax, [rbp + 0x310]
mov rcx, r14
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], si
jne 0x140002aa0
lea rax, [rcx + 1]
cmp rax, 0x104
jae 0x140002afb
lea rax, [rcx + 0xe]
lea r8, str.profiles.ini
mov edx, 0x104
cmp rax, rdx
ja 0x140002ad8
lea rcx, [rbp + 0x310]
call fcn.1400100dc
jmp 0x140002afb
mov r9d, 0x103
sub r9, rcx
sub rdx, rcx
lea rax, [rbp + 0x310]
lea rcx, [rax + rcx*2]
call fcn.14000f948
mov word [rbp + 0x516], si
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x68]
call fcn.140008020
mov qword [rbp + 0x170], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rbp + 0x310]
call qword [0x140039098]
mov qword [rsp + 0x50], rax
mov ecx, dword [rsp + 0x68]
cmp rax, r14
je 0x140002b66
or ecx, 1
mov dword [rsp + 0x68], ecx
test cl, 1
je 0x1400035e5
mov r12d, esi
mov r8d, r12d
lea rdx, str._Profile_d_
lea rcx, [rbp + 0x180]
call fcn.140003630
cmp eax, 0xffffffff
je 0x1400035e0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [0x140039178]
cmp eax, 0xffffffff
je 0x140002d06
mov qword [rsp + 0x60], rsi
jmp 0x140002bc2
xor esi, esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x1ff
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400035dc
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x140002c08
xor dl, dl
mov byte [rsp + 0x6c], dl
mov esi, 0xfffffffe
jmp 0x140002c93
mov ecx, esi
test r8d, r8d
je 0x140002c30
nop
mov eax, ecx
movzx edx, byte [rsp + rax + 0x6c]
cmp dl, 0xa
je 0x140002c28
cmp dl, 0xd
je 0x140002c28
inc ecx
cmp ecx, r8d
jb 0x140002c10
cmp ecx, 0x200
jae 0x140002c3e
mov eax, ecx
mov byte [rsp + rax + 0x6c], 0
cmp ecx, r8d
jae 0x140002c3e
inc ecx
mov eax, ecx
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov qword [rsp + 0x60], rdx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [0x140039178]
cmp eax, 0xffffffff
je 0x1400035dc
lea rcx, [rsp + 0x6c]
movzx edx, byte [rsp + 0x6c]
test dl, dl
je 0x140002c8a
movzx eax, dl
cmp al, 0x30
je 0x140002c80
cmp al, 9
jne 0x140002c8a
inc rcx
movzx eax, byte [rcx]
test al, al
jne 0x140002c78
cmp byte [rcx], 0x3b
je 0x140002bc0
lea rax, [rbp + 0x180]
mov rdi, r14
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140002ca0
xor ebx, ebx
test dl, dl
je 0x140002ce5
nop
cmp ebx, 0x200
jae 0x140002ce5
mov r8, rdi
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x6c]
call fcn.1400115e0
test eax, eax
je 0x140002cdb
inc ebx
cmp byte [rsp + rbx + 0x6c], 0
jne 0x140002cb0
jmp 0x140002ce5
lea rax, [rsp + 0x6c]
add rax, rdi
jne 0x140002cf3
cmp esi, 0xfffffffe
je 0x1400035dc
jmp 0x140002bc0
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x58], rdx
or dword [rsp + 0x68], 2
xor esi, esi
jmp 0x140002d0b
mov rdx, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [0x140039178]
cmp eax, 0xffffffff
je 0x1400035e0
mov qword [rbp + 0x170], rsi
nop dword [rax]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x1ff
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400035e0
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x140002d7b
xor dl, dl
mov byte [rsp + 0x6c], dl
mov edi, 0xfffffffe
lea rax, [rsp + 0x6c]
jmp 0x140002e04
mov ecx, esi
test r8d, r8d
je 0x140002da2
mov eax, ecx
movzx edx, byte [rsp + rax + 0x6c]
cmp dl, 0xa
je 0x140002d9a
cmp dl, 0xd
je 0x140002d9a
inc ecx
cmp ecx, r8d
jb 0x140002d82
cmp ecx, 0x200
jae 0x140002db0
mov eax, ecx
mov byte [rsp + rax + 0x6c], 0
cmp ecx, r8d
jae 0x140002db0
inc ecx
mov eax, ecx
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov qword [rsp + 0x60], rdx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [0x140039178]
cmp eax, 0xffffffff
je 0x1400035e0
mov edi, esi
lea rax, [rsp + 0x6c]
movzx edx, byte [rsp + 0x6c]
test dl, dl
je 0x140002e04
movzx ecx, dl
nop dword [rax]
cmp cl, 0x30
je 0x140002dfa
cmp cl, 9
jne 0x140002e04
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x140002df0
mov qword [rbp + 0x170], rax
movzx ecx, byte [rax]
cmp cl, 0x3b
je 0x140002e7c
cmp cl, 0x5b
jne 0x140002e44
nop dword [rax + rax]
inc rax
mov qword [rbp + 0x170], rax
movzx ecx, byte [rax]
cmp cl, 0x5d
je 0x1400035e0
test cl, cl
jne 0x140002e20
inc rax
mov qword [rbp + 0x170], rax
mov ebx, esi
test dl, dl
je 0x140002e7c
nop word [rax + rax]
cmp ebx, 0x200
jae 0x140002e7c
mov r8d, 4
lea rdx, str.Name
lea rcx, [rsp + 0x6c]
call fcn.1400115e0
test eax, eax
je 0x140002e8a
inc ebx
cmp byte [rsp + rbx + 0x6c], 0
jne 0x140002e50
cmp edi, 0xfffffffe
je 0x1400035e0
jmp 0x140002d30
lea r8, [rsp + 0x70]
movzx eax, byte [rsp + 0x70]
test al, al
je 0x140002eab
cmp al, 0x30
je 0x140002ea0
cmp al, 9
jne 0x140002eab
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140002e98
mov qword [rbp + 0x170], r8
cmp byte [r8], 0x3d
jne 0x1400035e0
inc r8
mov qword [rbp + 0x170], r8
movzx eax, byte [r8]
test al, al
je 0x140002ee3
nop
cmp al, 0x30
je 0x140002ed8
cmp al, 9
jne 0x140002ee3
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140002ed0
mov qword [rbp + 0x170], r8
mov rax, r14
nop dword [rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140002ef0
inc rax
cmp rax, 0x40
ja 0x1400035e0
mov rax, r14
nop word [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140002f10
mov edx, 0x40
lea rcx, [rbp + 0x1c0]
cmp rax, rdx
jae 0x140002f32
call fcn.14000ff40
jmp 0x140002f44
mov r9d, 0x3f
call fcn.14000ffa0
mov byte [rbp + 0x1ff], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [0x140039178]
cmp eax, 0xffffffff
je 0x1400035e0
mov qword [rbp + 0x170], rsi
nop word [rax + rax]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x1ff
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400035e0
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x140002fbb
xor dl, dl
mov byte [rsp + 0x6c], dl
mov edi, 0xfffffffe
lea rax, [rsp + 0x6c]
jmp 0x140003044
mov ecx, esi
test r8d, r8d
je 0x140002fe2
mov eax, ecx
movzx edx, byte [rsp + rax + 0x6c]
cmp dl, 0xa
je 0x140002fda
cmp dl, 0xd
je 0x140002fda
inc ecx
cmp ecx, r8d
jb 0x140002fc2
cmp ecx, 0x200
jae 0x140002ff0
mov eax, ecx
mov byte [rsp + rax + 0x6c], 0
cmp ecx, r8d
jae 0x140002ff0
inc ecx
mov eax, ecx
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov qword [rsp + 0x60], rdx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [0x140039178]
cmp eax, 0xffffffff
je 0x1400035e0
mov edi, esi
lea rax, [rsp + 0x6c]
movzx edx, byte [rsp + 0x6c]
test dl, dl
je 0x140003044
movzx ecx, dl
nop dword [rax]
cmp cl, 0x30
je 0x14000303a
cmp cl, 9
jne 0x140003044
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x140003030
mov qword [rbp + 0x170], rax
movzx ecx, byte [rax]
cmp cl, 0x3b
je 0x1400030bc
cmp cl, 0x5b
jne 0x140003084
nop dword [rax + rax]
inc rax
mov qword [rbp + 0x170], rax
movzx ecx, byte [rax]
cmp cl, 0x5d
je 0x1400035e0
test cl, cl
jne 0x140003060
inc rax
mov qword [rbp + 0x170], rax
mov ebx, esi
test dl, dl
je 0x1400030bc
nop word [rax + rax]
cmp ebx, 0x200
jae 0x1400030bc
mov r8d, 0xa
lea rdx, str.IsRelative
lea rcx, [rsp + 0x6c]
call fcn.1400115e0
test eax, eax
je 0x1400030ca
inc ebx
cmp byte [rsp + rbx + 0x6c], 0
jne 0x140003090
cmp edi, 0xfffffffe
je 0x1400035e0
jmp 0x140002f70
lea r8, [rsp + 0x76]
movzx eax, byte [rsp + 0x76]
test al, al
je 0x1400030eb
cmp al, 0x30
je 0x1400030e0
cmp al, 9
jne 0x1400030eb
inc r8
movzx eax, byte [r8]
test al, al
jne 0x1400030d8
mov qword [rbp + 0x170], r8
cmp byte [r8], 0x3d
jne 0x1400035e0
inc r8
mov qword [rbp + 0x170], r8
movzx eax, byte [r8]
test al, al
je 0x140003123
nop
cmp al, 0x30
je 0x140003118
cmp al, 9
jne 0x140003123
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140003110
mov qword [rbp + 0x170], r8
mov rax, r14
nop dword [rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140003130
inc rax
cmp rax, 4
ja 0x1400035e0
mov rax, r14
nop word [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140003150
mov edx, 4
lea rcx, [rsp + 0x44]
cmp rax, rdx
jae 0x140003170
call fcn.14000ff40
jmp 0x140003180
mov r9d, 3
call fcn.14000ffa0
mov byte [rsp + 0x47], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [0x140039178]
cmp eax, 0xffffffff
je 0x1400035e0
mov qword [rbp + 0x170], rsi
nop word [rax + rax]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x1ff
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400035e0
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x1400031fb
xor dl, dl
mov byte [rsp + 0x6c], dl
mov edi, 0xfffffffe
lea rax, [rsp + 0x6c]
jmp 0x140003284
mov eax, esi
test r8d, r8d
je 0x140003221
mov ecx, eax
movzx edx, byte [rsp + rcx + 0x6c]
cmp dl, 0xa
je 0x14000321a
cmp dl, 0xd
je 0x14000321a
inc eax
cmp eax, r8d
jb 0x140003202
cmp eax, 0x200
jae 0x14000322f
mov ecx, eax
mov byte [rsp + rcx + 0x6c], 0
cmp eax, r8d
jae 0x14000322f
inc eax
mov ecx, eax
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov qword [rsp + 0x60], rdx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [0x140039178]
cmp eax, 0xffffffff
je 0x1400035e0
mov edi, esi
lea rax, [rsp + 0x6c]
movzx edx, byte [rsp + 0x6c]
test dl, dl
je 0x140003284
movzx ecx, dl
nop dword [rax + rax]
cmp cl, 0x30
je 0x14000327a
cmp cl, 9
jne 0x140003284
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x140003270
mov qword [rbp + 0x170], rax
movzx ecx, byte [rax]
cmp cl, 0x3b
je 0x1400032fc
cmp cl, 0x5b
jne 0x1400032c4
nop dword [rax + rax]
inc rax
mov qword [rbp + 0x170], rax
movzx ecx, byte [rax]
cmp cl, 0x5d
je 0x1400035e0
test cl, cl
jne 0x1400032a0
inc rax
mov qword [rbp + 0x170], rax
mov ebx, esi
test dl, dl
je 0x1400032fc
nop word [rax + rax]
cmp ebx, 0x200
jae 0x1400032fc
mov r8d, 4
lea rdx, str.Path
lea rcx, [rsp + 0x6c]
call fcn.1400115e0
test eax, eax
je 0x14000330a
inc ebx
cmp byte [rsp + rbx + 0x6c], 0
jne 0x1400032d0
cmp edi, 0xfffffffe
je 0x1400035e0
jmp 0x1400031b0
lea r8, [rsp + 0x70]
movzx eax, byte [rsp + 0x70]
test al, al
je 0x14000332b
cmp al, 0x30
je 0x140003320
cmp al, 9
jne 0x14000332b
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140003318
mov qword [rbp + 0x170], r8
cmp byte [r8], 0x3d
jne 0x1400035e0
inc r8
mov qword [rbp + 0x170], r8
movzx eax, byte [r8]
test al, al
je 0x140003363
nop
cmp al, 0x30
je 0x140003358
cmp al, 9
jne 0x140003363
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140003350
mov qword [rbp + 0x170], r8
mov rax, r14
nop dword [rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140003370
inc rax
cmp rax, 0x104
ja 0x1400035e0
mov rax, r14
nop dword [rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140003390
mov edx, 0x104
lea rcx, [rbp + 0x200]
cmp rax, rdx
jae 0x1400033b2
call fcn.14000ff40
jmp 0x1400033c4
mov r9d, 0x103
call fcn.14000ffa0
mov byte [rbp + 0x303], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x520]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rbp + 0x200]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400035e0
mov ecx, 0x208
call fcn.140006298
mov rdi, rax
mov rax, r14
cmp byte [rsp + 0x44], 0x31
jne 0x1400034ae
inc rax
cmp word [r15 + rax*2], 0
jne 0x140003412
mov r8, r15
mov edx, 0x104
mov rcx, rdi
cmp rax, rdx
jae 0x140003434
call fcn.140010074
jmp 0x140003446
mov r9d, 0x103
call fcn.14000f948
mov word [rdi + 0x206], si
mov rcx, r14
nop dword [rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x140003450
lea rax, [rbp + 0x520]
mov rdx, r14
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140003464
lea rax, [rcx + 1]
cmp rax, 0x104
jae 0x1400034ec
lea rax, [rcx + 1]
add rax, rdx
lea r8, [rbp + 0x520]
mov edx, 0x104
cmp rax, rdx
ja 0x14000349c
mov rcx, rdi
call fcn.1400100dc
jmp 0x1400034ec
mov r9d, 0x103
sub r9, rcx
sub rdx, rcx
lea rcx, [rdi + rcx*2]
jmp 0x1400034e0
lea rcx, [rbp + 0x520]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400034b5
lea r8, [rbp + 0x520]
mov edx, 0x104
mov rcx, rdi
cmp rax, rdx
jae 0x1400034da
call fcn.140010074
jmp 0x1400034ec
mov r9d, 0x103
call fcn.14000f948
mov word [rdi + 0x206], si
mov ecx, esi
cmp word [rdi], 0
je 0x140003524
mov r13d, 0x5c
nop word [rax + rax]
cmp ecx, 0x104
jae 0x14000351f
mov eax, ecx
cmp word [rdi + rax*2], 0x2f
jne 0x140003516
mov word [rdi + rax*2], r13w
inc ecx
cmp word [rdi + rcx*2], 0
jne 0x140003500
mov r13, qword [rsp + 0x48]
mov ecx, 0x468
call fcn.14000c284
mov rbx, rax
test rax, rax
je 0x1400035cd
xor edx, edx
mov r8d, 0x468
mov rcx, rax
call fcn.140008020
mov eax, dword [0x140039c20]
cmp eax, 0xffffffff
jne 0x14000356c
xor r8d, r8d
lea edx, [rax + 2]
lea ecx, [rax + 7]
call fcn.1400016d0
movzx eax, al
mov dword [0x140039c20], eax
mov edx, esi
cmp eax, 1
sete dl
lea r8, [rbx + 8]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1400035a0
mov rcx, rbx
call fcn.14000c28c
jmp 0x1400035cd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1400035b5
mov rcx, rbx
call fcn.14000c28c
mov rbx, qword [r13 + 0x10]
lea rdx, [rbx + 1]
mov rcx, r13
call fcn.140001e30
mov rax, qword [r13 + 8]
mov qword [rax + rbx*8], rdi
mov eax, r12d
inc r12d
cmp eax, 0x14
jl 0x140002b72
mov r14d, dword [r13 + 0x10]
mov rax, qword [rsp + 0x50]
cmp rax, 0xffffffffffffffff
je 0x1400035f4
mov rcx, rax
call qword [0x140039088]
mov eax, r14d
mov rcx, qword [rbp + 0x730]
xor rcx, rsp
call fcn.140005fa0
mov rbx, qword [rsp + 0x890]
add rsp, 0x840
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret