Function at 0x140035570
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x658], rbx
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
mov rbx, r8
mov qword [rsp + 0x28], rdx
mov rdi, rcx
mov dword [rdx], 1
mov ecx, 0xfa0
call fcn.140085e1c
mov qword [rsp + 0x20], rax
mov qword [rbx], rax
xor ebx, ebx
test rdi, rdi
jne 0x140035675
mov r8d, 0x12c
lea rdx, [rbp + 0x360]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x360]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], bl
jne 0x140035600
movsxd rcx, eax
test eax, eax
jle 0x140035624
nop
cmp byte [rbp + rcx + 0x360], 0x5c
je 0x140035624
dec eax
dec rcx
test rcx, rcx
jg 0x140035610
inc eax
movsxd rcx, eax
cmp rcx, 0x190
jae 0x14003566f
mov byte [rbp + rcx + 0x360], bl
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], bl
jne 0x140035643
mov rax, qword [str.config.txt]
mov qword [rcx], rax
movzx eax, word [0x1400d9928]
mov word [rcx + 8], ax
movzx eax, byte [0x1400d992a]
mov byte [rcx + 0xa], al
jmp 0x14003575f
call fcn.1400861e0
int3
mov edx, ebx
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rdi + rax], dl
jne 0x140035680
test rax, rax
je 0x1400356d3
mov rcx, rdi
cmp byte [rcx], 0x5c
je 0x1400356b0
inc edx
inc rcx
movsxd r8, edx
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], bl
jne 0x1400356a1
cmp r8, rax
jb 0x140035690
jmp 0x1400356d3
lea rcx, [rbp + 0x360]
sub rcx, rdi
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rcx + rdi], al
lea rdi, [rdi + 1]
test al, al
jne 0x1400356c0
jmp 0x14003575f
mov r8d, 0x12c
lea rdx, [rbp + 0x360]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x360]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x1400356f3
movsxd rcx, eax
test eax, eax
jle 0x140035716
cmp byte [rbp + rcx + 0x360], 0x5c
je 0x140035716
dec eax
dec rcx
test rcx, rcx
jg 0x140035702
inc eax
movsxd rcx, eax
cmp rcx, 0x190
jae 0x140035b74
mov byte [rbp + rcx + 0x360], bl
lea rcx, [rbp + 0x360]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], bl
jne 0x140035740
xor edx, edx
nop word [rax + rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140035750
mov qword [rbp + 0x348], rbx
mov dword [rbp + 0x340], ebx
mov word [rsp + 0x40], bx
lea rax, [rbp + 0x360]
mov qword [rsp + 0x30], rax
mov byte [rbp + 0x350], 0
xor eax, eax
mov dword [rbp + 0x351], eax
mov byte [rbp + 0x355], al
lea rcx, [rbp + 0x350]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], al
jne 0x1400357a0
movzx eax, word [0x1400daa6c]
mov word [rcx], ax
lea rcx, [rbp + 0x350]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400357c0
movzx eax, word [0x1400daa74]
mov word [rcx], ax
lea rdx, [rbp + 0x350]
lea rcx, [rbp + 0x360]
call fcn.14008691c
mov qword [rbp + 0x348], rax
test rax, rax
je 0x140035816
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14008c320
mov dword [rbp + 0x340], 1
jmp 0x140035846
call fcn.140087430
cmp dword [rax], 0
je 0x140035846
mov rcx, qword [rbp + 0x348]
test rcx, rcx
je 0x140035b7a
call fcn.140088070
mov rcx, qword [rbp + 0x348]
call fcn.140086bc4
jmp 0x140035b7a
mov rdi, qword [rbp + 0x348]
test rdi, rdi
je 0x140035895
mov rcx, rdi
call fcn.14008ad3c
mov edi, eax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbp + 0x348]
call fcn.14008bb14
mov rcx, qword [rbp + 0x348]
call fcn.14008ad3c
movsxd rbx, eax
xor r8d, r8d
mov edx, edi
mov rcx, qword [rbp + 0x348]
call fcn.14008bb14
mov rdi, qword [rbp + 0x348]
lea eax, [rbx + 1]
movsxd rcx, eax
call fcn.140085e1c
mov r12, rax
test rdi, rdi
je 0x1400358e4
test byte [rbp + 0x340], 1
je 0x1400358e4
movsxd r8, ebx
mov r9, rdi
mov edx, 1
mov rcx, rax
call fcn.1400883bc
cmp eax, ebx
je 0x1400358e4
mov rcx, qword [rbp + 0x348]
call fcn.14008880c
test eax, eax
jne 0x1400358e4
mov rcx, qword [rbp + 0x348]
call fcn.140088834
movsxd r14, ebx
mov byte [r14 + r12], 0
mov rdx, qword [rbp + 0x348]
test rdx, rdx
je 0x14003591e
mov rcx, rdx
call fcn.140088070
mov rcx, qword [rbp + 0x348]
call fcn.140086bc4
xor edi, edi
mov edx, edi
mov qword [rbp + 0x348], rdx
mov word [rsp + 0x40], di
jmp 0x140035920
xor edi, edi
mov eax, edi
mov r13d, edi
mov rcx, rdi
test ebx, ebx
js 0x140035b67
lea r15d, [rax + 1]
lea rsi, [rcx + 1]
cmp rsi, r14
jg 0x140035952
nop dword [rax]
cmp byte [rsi + r12], 0x20
jl 0x140035952
inc r15d
inc rsi
cmp rsi, r14
jle 0x140035940
lea rbx, [rcx + r12]
mov rax, rsi
sub rax, rcx
mov byte [rax + rbx], 0
mov r8, rbx
lea rdx, str.Parse_config_line:__s_n
mov ecx, 2
call fcn.140014e30
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140035980
test rax, rax
je 0x1400359d1
nop
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp byte [rbx + rax], 0
jne 0x140035994
cmp byte [rax + rbx - 1], 0x20
jg 0x1400359d1
or rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp byte [rbx + rax], 0
jne 0x1400359b0
mov byte [rax + rbx - 1], 0
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x1400359c3
test rax, rax
jne 0x140035990
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x1400359d5
test rax, rax
je 0x1400359fe
cmp byte [rbx], 0x20
jg 0x1400359fe
inc rbx
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1400359f0
test rax, rax
jne 0x1400359e3
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140035a02
test ecx, ecx
je 0x140035b36
movzx eax, byte [rbx]
cmp al, 0x3b
je 0x140035b36
cmp al, 0x23
je 0x140035b36
mov edx, edi
mov rax, rdi
movsxd r8, ecx
test ecx, ecx
jle 0x140035b20
cmp byte [rax + rbx], 0x20
je 0x140035a4b
inc edx
inc rax
cmp rax, r8
jl 0x140035a36
jmp 0x140035b20
test edx, edx
je 0x140035b20
mov byte [rax + rbx], 0
movsxd rax, edx
lea rdi, [rbx + 1]
add rdi, rax
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140035a65
test rax, rax
je 0x140035a8e
cmp byte [rdi], 0x20
jg 0x140035a8e
inc rdi
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rdi + rax], 0
jne 0x140035a80
test rax, rax
jne 0x140035a73
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140035a92
test rax, rax
je 0x140035b06
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140035aa4
test rax, rax
je 0x140035b06
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + rax*8], rbx
mov rbx, qword [rsp + 0x28]
inc dword [rbx]
lea rdx, [0x1400d7aa0]
mov rcx, rdi
call fcn.140085ed4
test rax, rax
jne 0x140035aec
movsxd rax, dword [rbx]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + rax*8], rdi
jmp 0x140035b00
mov rcx, rdi
call fcn.14002dda0
movsxd rcx, dword [rbx]
mov rdx, qword [rsp + 0x20]
mov qword [rdx + rcx*8], rax
inc dword [rbx]
xor edi, edi
jmp 0x140035b36
mov r9d, r13d
lea r8, str.Error_parsing_line__d_of_config.txt_n
mov edx, 3
xor ecx, ecx
call fcn.140015030
xor edi, edi
jmp 0x140035b36
mov r9d, r13d
lea r8, str.Error_parsing_line__d_of_config.txt_n
mov edx, 3
xor ecx, ecx
call fcn.140015030
lea eax, [r15 + 1]
lea rcx, [rsi + 1]
cmp rcx, r14
jg 0x140035b54
cmp byte [rcx + r12], 0x20
jge 0x140035b54
inc eax
inc rcx
cmp rcx, r14
jle 0x140035b43
inc r13d
cmp rcx, r14
jle 0x140035930
mov rdx, qword [rbp + 0x348]
test rdx, rdx
je 0x140035b7a
mov rcx, rdx
jmp 0x140035830
call fcn.1400861e0
int3
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140084a30
mov rbx, qword [rsp + 0x658]
add rsp, 0x600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret