Function at 0x1000ded7
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
sub esp, 0x958
lea ebp, [esp - 4]
mov eax, dword [0x100220e0]
xor eax, ebp
mov dword [ebp + 0x958], eax
push 0x24
mov eax, 0x10016137
call fcn.10015a4c
mov ecx, dword [ebp + 0x964]
mov edi, dword [ebp + 0x96c]
xor ebx, ebx
push 0x100185ec
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor esi, esi
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0x968], ebx
jne 0x1000e296
push 0x7ff
lea eax, [ebp + 0x55]
push ebx
push eax
mov byte [ebp + 0x54], bl
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x1c]
push esi
push eax
call fcn.1000ef13
add esp, 0x14
push str.pub_store.dat
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x1000df6e
lea eax, [ebp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
mov ebx, 0x800
push ebx
lea eax, [ebp + 0x54]
push eax
push 0x10018560
push 0x10018558
push 0x10018550
call esi
test eax, eax
je 0x1000e3ba
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp + 0x38]
push 0x10018560
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
pop ecx
pop ecx
test al, al
jne 0x1000dfc8
cmp dword [ebp + 0x4c], 3
je 0x1000e057
push 0x104
lea eax, [ebp + 0x854]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp + 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000e057
lea eax, [ebp + 0x854]
push eax
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.pub_store.dat
lea ecx, [ebp]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x1000e022
lea eax, [ebp + 4]
push eax
push ebx
lea eax, [ebp + 0x54]
push eax
push 0x10018560
push 0x10018558
push 0x10018550
call esi
test eax, eax
je 0x1000e04a
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x38]
call dword [0x100181fc]
lea ecx, [ebp]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp + 0x38]
push 0x10018560
push eax
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
pop ecx
pop ecx
test al, al
jne 0x1000e076
cmp dword [ebp + 0x4c], 3
je 0x1000e1fb
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1000e1fb
xor ebx, ebx
xor esi, esi
test eax, eax
jbe 0x1000e1fb
imul ebx, ebx, 0x24
cmp esi, eax
jbe 0x1000e09a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e0a5
mov eax, dword [edi + 4]
jmp 0x1000e0a8
lea eax, [edi + 4]
cmp byte [eax + esi], 0x30
jl 0x1000e0f3
cmp esi, dword [edi + 0x14]
jbe 0x1000e0b9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e0c4
mov eax, dword [edi + 4]
jmp 0x1000e0c7
lea eax, [edi + 4]
cmp byte [eax + esi], 0x39
jg 0x1000e0f3
cmp esi, dword [edi + 0x14]
jbe 0x1000e0d8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e0e3
mov eax, dword [edi + 4]
jmp 0x1000e0e6
lea eax, [edi + 4]
movsx eax, byte [eax + esi]
lea ebx, [ebx + eax - 0x30]
jmp 0x1000e1b8
cmp esi, dword [edi + 0x14]
jbe 0x1000e0fe
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e109
mov eax, dword [edi + 4]
jmp 0x1000e10c
lea eax, [edi + 4]
cmp byte [eax + esi], 0x41
jl 0x1000e154
cmp esi, dword [edi + 0x14]
jbe 0x1000e11d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e128
mov eax, dword [edi + 4]
jmp 0x1000e12b
lea eax, [edi + 4]
cmp byte [eax + esi], 0x5a
jg 0x1000e154
cmp esi, dword [edi + 0x14]
jbe 0x1000e13c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e147
mov eax, dword [edi + 4]
jmp 0x1000e14a
lea eax, [edi + 4]
movsx eax, byte [eax + esi]
lea ebx, [ebx + eax - 0x37]
jmp 0x1000e1b8
cmp esi, dword [edi + 0x14]
jbe 0x1000e15f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e16a
mov eax, dword [edi + 4]
jmp 0x1000e16d
lea eax, [edi + 4]
cmp byte [eax + esi], 0x61
jl 0x1000e1b5
cmp esi, dword [edi + 0x14]
jbe 0x1000e17e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e189
mov eax, dword [edi + 4]
jmp 0x1000e18c
lea eax, [edi + 4]
cmp byte [eax + esi], 0x7a
jg 0x1000e1b5
cmp esi, dword [edi + 0x14]
jbe 0x1000e19d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 0x10
jb 0x1000e1a8
mov eax, dword [edi + 4]
jmp 0x1000e1ab
lea eax, [edi + 4]
movsx eax, byte [eax + esi]
lea ebx, [ebx + eax - 0x57]
jmp 0x1000e1b8
add ebx, 0xd
mov eax, ebx
xor edx, edx
mov ecx, 0xb63e
div ecx
mov ebx, edx
lea eax, [ebx + 1]
push eax
lea eax, [ebp]
push eax
call fcn.1000dd9b
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [edi + 0x14]
inc esi
cmp esi, eax
jb 0x1000e08d
mov esi, dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov edi, 0x10018560
lea eax, [ebp + 0x38]
push edi
push eax
call esi
pop ecx
pop ecx
test al, al
jne 0x1000e219
cmp dword [ebp + 0x4c], 3
je 0x1000e280
call fcn.1000ddf3
push eax
lea eax, [ebp]
push eax
call fcn.1000dd9b
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp + 0x38]
push edi
push eax
call esi
pop ecx
pop ecx
test al, al
jne 0x1000e219
cmp dword [ebp + 0x34], 0x10
mov ecx, dword [ebp + 0x20]
jae 0x1000e25e
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x1000e26a
lea eax, [ebp + 0x3c]
push ecx
push eax
push 0x10018558
push 0x10018550
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x1000e28d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 1
jmp 0x1000e3b1
lea eax, [ebp]
push eax
call fcn.1000ee98
mov dword [esp], str.pub_store.dat
push eax
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp - 4], 6
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
lea ecx, [ebp]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x7ff
lea eax, [ebp + 0x55]
push ebx
push eax
mov byte [ebp + 0x54], 0
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [ebp + 0x34], 0x10
jae 0x1000e2ea
lea eax, [ebp + 0x20]
push eax
push 0x800
lea eax, [ebp + 0x54]
push eax
mov esi, 0x10018560
push esi
push 0x10018558
mov ebx, 0x10018550
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1000e3ba
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
lea eax, [ebp + 0x38]
push esi
push eax
mov byte [ebp - 4], 9
call edi
pop ecx
pop ecx
test al, al
jne 0x1000e33d
cmp dword [ebp + 0x4c], 3
je 0x1000e3a0
call fcn.1000ddf3
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1000dd9b
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp + 0x38]
push esi
push eax
call edi
pop ecx
pop ecx
test al, al
jne 0x1000e33d
cmp dword [ebp + 0x34], 0x10
mov ecx, dword [ebp + 0x20]
jae 0x1000e382
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x1000e38e
lea eax, [ebp + 0x3c]
push ecx
push eax
push 0x10018558
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x1000e3ad
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x958]
xor ecx, ebp
call fcn.10015494
add ebp, 0x95c
leave
ret 0xc