Function at 0x6fce88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xb5c
mov esi, dword [ebp + 0xc]
mov dword [esp], esi
call fcn.006f6108
mov ebx, eax
test eax, eax
je 0x6fd0a4
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [esp], eax
call fcn.00705370
test eax, eax
jne 0x6fd084
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [esp], eax
call fcn.00705544
test eax, eax
je 0x6fd09c
mov dword [esp], ebx
call fcn.00707c84
test eax, eax
jne 0x6fd0fc
test byte [0xc97a41], 4
jne 0x6fd280
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll__open
mov dword [ebp - 0xb40], eax
inc eax
je 0x6fd09c
mov dword [esp], 0xb1fd9c
call fcn.0070cb60
mov edi, eax
mov dword [esp], ebx
call fcn.00704258
test edi, edi
je 0x6fd298
mov dword [ebp - 0xb38], 0
mov dword [ebp - 0xb20], 0
mov dword [ebp - 0xb34], 0
mov dword [ebp - 0x61c], 0
mov dword [ebp - 0xb30], 0
mov dword [ebp - 0xb2c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb28], eax
mov dword [ebp - 0xb24], edi
lea edx, [ebp - 0xb38]
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00708c80
mov dword [esp + 8], 0x6fbe90
mov dword [esp + 4], 0x6fc1f8
mov dword [esp], edi
call fcn.00708dc0
mov dword [esp + 8], 0x6fd418
mov dword [esp + 4], 0x6fc6a8
mov dword [esp], edi
call fcn.00708cd0
mov dword [esp + 4], 0x6fc23c
mov dword [esp], edi
call fcn.00708d10
mov dword [ebp - 0xb3c], esi
mov esi, dword [ebp - 0xb40]
nop
mov dword [esp + 4], 0x200
mov dword [esp], edi
call fcn.00709a60
test eax, eax
je 0x6fd355
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll__read
mov ebx, eax
cmp eax, 0
jl 0x6fd383
sete al
movzx eax, al
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00708f80
test eax, eax
je 0x6fd3b1
test ebx, ebx
jne 0x6fcfdc
mov esi, dword [ebp - 0xb3c]
mov ebx, dword [ebp - 0xb30]
jmp 0x6fd04f
lea eax, [ebp - 0xb38]
call fcn.006fca24
mov eax, dword [ebp - 0xb38]
test eax, eax
jne 0x6fd044
mov dword [esp], edi
call fcn.0070b0f0
mov edx, dword [ebp - 0xb40]
mov dword [esp], edx
call sub.msvcrt.dll__close
test ebx, ebx
jne 0x6fd0a4
mov eax, 1
add esp, 0xb5c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], ebx
call fcn.00704258
mov eax, 1
add esp, 0xb5c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], ebx
call fcn.00704258
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x6fd073
test esi, esi
je 0x6fd0dc
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Cannot_load_config_file___s_
mov dword [esp + 4], 2
mov dword [esp], 0
call fcn.006fbfa8
xor eax, eax
add esp, 0xb5c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], str.Cannot_load_default_config_file
mov dword [esp + 4], 2
mov dword [esp], 0
call fcn.006fbfa8
xor eax, eax
jmp 0x6fd091
mov dword [esp], ebx
call fcn.008ea360
mov dword [ebp - 0xb40], eax
test eax, eax
je 0x6fd318
mov esi, 0xffffffff
mov ecx, esi
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x1001
mov dword [esp], ecx
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xb48], eax
test eax, eax
je 0x6fd3f3
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov ecx, esi
mov edi, dword [ebp - 0xb48]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [ebp - 0xb48]
mov word [edx + ecx - 1], 0x2f
mov ecx, esi
mov edi, dword [ebp - 0xb48]
repne scasb al, byte es:[edi]
not ecx
lea ecx, [edx + ecx - 1]
mov dword [ebp - 0xb50], ecx
call fcn.00705320
mov dword [ebp - 0xb4c], eax
test eax, eax
je 0x6fd40f
test byte [0xc97a41], 4
jne 0x6fd3fa
nop
mov edx, dword [ebp - 0xb40]
mov dword [esp], edx
call fcn.008ea190
mov edx, eax
test eax, eax
je 0x6fd2a4
mov al, byte [edx + 8]
sub eax, 0x30
cmp al, 9
ja 0x6fd19c
lea eax, [edx + 8]
mov dword [ebp - 0xb44], eax
mov ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
cmp eax, 0xfff
jg 0x6fd19c
cmp eax, 5
jle 0x6fd19c
lea esi, [edx + ecx + 2]
mov edi, str..conf
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
jne 0x6fd19c
mov edx, dword [ebp - 0xb44]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0xb50]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov edx, dword [ebp - 0xb48]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0xb4c]
mov dword [esp], eax
call fcn.00705544
test eax, eax
jne 0x6fd19c
xor edi, edi
nop
mov edx, dword [ebp - 0xb4c]
mov dword [esp], edx
call fcn.007056bc
mov eax, dword [ebp - 0xb48]
mov dword [esp], eax
call fcn.008f2ba8
mov edx, dword [ebp - 0xb40]
mov dword [esp], edx
call fcn.008ea130
test edi, edi
je 0x6fd343
mov eax, 1
mov dword [esp], ebx
mov dword [ebp - 0xb54], eax
call fcn.00704258
mov eax, dword [ebp - 0xb54]
jmp 0x6fd091
mov dword [esp + 4], ebx
mov dword [esp], str._tLoading_config_file__s_n
call sub.msvcrt.dll_printf
jmp 0x6fcefa
mov ebx, 1
jmp 0x6fd061
mov dword [esp + 0xc], 0x6fbf2c
mov dword [esp + 8], 4
mov edx, dword [ebp - 0xb4c]
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_qsort
mov edi, 1
xor esi, esi
mov dword [ebp - 0xb44], ebx
mov ebx, dword [ebp - 0xb4c]
mov eax, edi
mov edi, dword [ebp + 8]
jmp 0x6fd2e9
inc esi
cmp dword [ebx + 4], esi
jle 0x6fd30b
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + esi*4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.006fce88
test eax, eax
jne 0x6fd2e8
mov ebx, dword [ebp - 0xb44]
mov edi, eax
jmp 0x6fd230
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6fd262
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Cannot_open_config_dir___s_
mov dword [esp + 4], 2
mov dword [esp], 0
call fcn.006fbfa8
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6fd262
xor eax, eax
jmp 0x6fd267
mov esi, dword [ebp - 0xb3c]
mov dword [esp + 8], str.cannot_get_parse_buffer
mov dword [esp + 4], 2
lea eax, [ebp - 0xb38]
mov dword [esp], eax
call fcn.006fbfa8
mov ebx, 1
jmp 0x6fd04f
mov esi, dword [ebp - 0xb3c]
mov dword [esp + 8], str.failed_reading_config_file
mov dword [esp + 4], 2
lea edx, [ebp - 0xb38]
mov dword [esp], edx
call fcn.006fbfa8
mov ebx, 1
jmp 0x6fd04f
mov esi, dword [ebp - 0xb3c]
mov dword [esp], edi
call fcn.00709240
mov dword [esp], eax
call fcn.00709430
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb1fdd5
mov dword [esp + 4], 2
lea eax, [ebp - 0xb38]
mov dword [esp], eax
call fcn.006fbfa8
mov ebx, 1
jmp 0x6fd04f
xor edi, edi
jmp 0x6fd24c
mov dword [esp + 4], ebx
mov dword [esp], str._tScanning_config_dir__s_n
call sub.msvcrt.dll_printf
jmp 0x6fd19c
xor edi, edi
jmp 0x6fd23e