Function at 0x10063650
Capabilities:
Check if file exists
Get file size
Read .ini file

Disassembly:
sub esp, 0x48
push ebp
mov ebp, ecx
lea ecx, [esp + 0xc]
lea eax, [ebp + 0x34]
push eax
call fcn.100630b0
mov al, byte [ebp + 0x58]
test al, al
jne 0x10063684
lea ecx, [esp + 0xc]
call fcn.100630f0
mov eax, dword [esp + 0x50]
pop ebp
cmp eax, 0xb
setne al
add esp, 0x48
ret 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x50]
xor ebx, ebx
cmp ecx, ebx
je 0x100636a6
mov edx, eax
sub edx, ecx
cmp edx, 0xea60
jb 0x10063917
mov dword [ebp + 0x50], eax
mov al, byte [ebp + 0x57]
test al, al
jne 0x100636d0
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x100636bc
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100636cc
mov byte [ebp + 0x54], al
jmp 0x100636d0
mov byte [ebp + 0x54], 1
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x100636dc
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1006380a
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push ebx
push ebx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x60]
mov ecx, 8
mov edi, eax
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1006373e
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
je 0x100637ff
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
test ebx, ebx
jbe 0x100637f0
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x10063767
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push 1
push str.MaxBackupIndex
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
mov dword [ebp + 0x5c], eax
jge 0x10063789
mov dword [ebp + 0x5c], 1
xor eax, eax
mov word [esp + 0x20], 0
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x100637ae
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [esp + 0x24]
push 9
push ecx
push str.Research
push str.Level
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x20]
push str.Research
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
sete al
mov cl, al
mov byte [ebp + 0x56], al
mov byte [ebp + 0x55], cl
jmp 0x10063917
mov dword [ebp + 0x5c], 1
mov byte [ebp + 0x55], 1
mov byte [ebp + 0x56], 1
mov cl, byte [ebp + 0x56]
mov byte [ebp + 0x55], cl
jmp 0x10063917
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x28]
cmp eax, ebx
jne 0x10063827
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x34]
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10063913
lea edx, [ebp + 0x68]
mov ecx, 8
mov edi, edx
lea esi, [esp + 0x48]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10063855
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10063917
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [edx], eax
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov dword [edx + 4], ecx
ja 0x10063888
cmp dword [esp + 0x50], ebx
ja 0x10063888
mov dword [ebp + 0x5c], 1
mov byte [ebp + 0x55], 1
jmp 0x10063917
mov eax, dword [ebp + 0x28]
cmp eax, ebx
jne 0x10063894
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push 1
push str.MaxBackupIndex
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
mov dword [ebp + 0x5c], eax
jge 0x100638b6
mov dword [ebp + 0x5c], 1
mov eax, dword [ebp + 0x28]
xor edx, edx
mov dword [esp + 0x22], edx
cmp eax, ebx
mov dword [esp + 0x26], edx
mov word [esp + 0x20], bx
mov dword [esp + 0x2a], edx
mov dword [esp + 0x2e], edx
jne 0x100638d9
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [esp + 0x24]
push 9
push eax
push str.Research
push str.Level
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x20]
push str.Research
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
sete dl
mov byte [ebp + 0x55], dl
jmp 0x10063917
mov byte [ebp + 0x55], 0
mov al, byte [ebp + 0x54]
pop edi
pop esi
pop ebx
test al, al
jne 0x10063933
lea ecx, [esp + 0xc]
call fcn.100630f0
xor al, al
pop ebp
add esp, 0x48
ret 4
cmp dword [esp + 0x50], 0xb
jne 0x10063953
mov al, byte [ebp + 0x55]
test al, al
jne 0x10063953
lea ecx, [esp + 0xc]
call fcn.100630f0
xor al, al
pop ebp
add esp, 0x48
ret 4
lea ecx, [esp + 0xc]
call fcn.100630f0
mov al, 1
pop ebp
add esp, 0x48
ret 4