Function at 0x407290
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x494ef2
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x17c]
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x178], 0
call fcn.00404e10
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x178], 1
call fcn.00431770
push 0x498844
lea ecx, [esp + 0x54]
mov byte [esp + 0x178], 2
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [esp + 0x54]
mov edi, 8
cmp dword [esp + 0x68], edi
jae 0x407331
lea eax, [esp + 0x54]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x407354
push 0
push 0x4984d4
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
cmp eax, 0xffffffff
jne 0x4073aa
push ebp
lea ecx, [esp + 0x54]
lea ebx, [esp + 0x38]
call fcn.00406f40
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x178], 3
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, ebx
mov byte [esp + 0x174], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.data_
lea ecx, [esp + 0x54]
call dword [0x497354]
push 0x498844
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x54]
call dword [0x497354]
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], edi
jae 0x4073b8
lea eax, [esp + 0x54]
push eax
call esi
test eax, eax
jne 0x4073f5
lea edx, [esp + 0x6c]
or esi, 0xffffffff
push edx
mov dword [ebp + 0x58], esi
mov byte [esp + 0x178], 1
call fcn.00431850
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x178], 0
call fcn.0040a200
mov dword [esp + 0x174], esi
jmp 0x407628
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x5c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
cmp dword [esp + 0x68], edi
jb 0x407517
mov eax, dword [esp + 0x54]
mov esi, eax
test eax, eax
je 0x407446
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407420
sub eax, edx
sar eax, 1
je 0x407446
cmp dword [esp + 0x80], 0
jne 0x407446
push esi
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x84], edi
jae 0x407457
lea eax, [esp + 0x70]
push eax
push 0
push str.MaxCount
push str.MaxCount
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp], eax
test eax, eax
jne 0x40749f
mov eax, dword [esp + 0x70]
mov dword [ebp], 0xa
cmp dword [esp + 0x84], edi
jae 0x407489
lea eax, [esp + 0x70]
push eax
push 0x498c30
push str.MaxCount
push str.MaxCount
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x84], edi
jae 0x4074b0
lea ecx, [esp + 0x70]
push str.ADVANCED_TOOLS
lea edx, [esp + 0x20]
call fcn.00431c90
add esp, 4
test eax, eax
je 0x4075eb
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ebx, ebx
test eax, eax
jle 0x40759b
xor ebp, ebp
cmp ebx, eax
jb 0x407506
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp dword [esi + ebp + 0x34], 8
jb 0x407520
mov edx, dword [esi + ebp + 0x20]
mov dword [esp + 0x14], edx
jmp 0x407528
lea esi, [esp + 0x54]
jmp 0x407417
lea eax, [esi + ebp + 0x20]
mov dword [esp + 0x14], eax
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40754b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x28]
cmp dword [esi + ebp + 0x18], 8
jb 0x407558
mov esi, dword [esi + ebp + 4]
jmp 0x40755c
lea esi, [esi + ebp + 4]
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.00407900
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add ebp, 0x38
cmp ebx, eax
jl 0x4074f6
mov ebp, dword [esp + 0x18]
lea edi, [esp + 0x6c]
call fcn.00432240
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x58], eax
mov eax, edi
push eax
mov byte [esp + 0x178], 1
call fcn.00431850
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x178], 0
call fcn.0040a200
lea ecx, [esp + 0x50]
mov dword [esp + 0x174], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x407634
lea edi, [esp + 0x6c]
mov dword [ebp + 0x58], 0xfffffffe
call fcn.00432240
mov edx, edi
push edx
mov byte [esp + 0x178], 1
call fcn.00431850
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x178], 0
call fcn.0040a200
mov dword [esp + 0x174], 0xffffffff
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x164
ret 4