Function at 0x459c90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46e7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x638], eax
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x640]
mov dword fs:[0], eax
push 0x3fe
lea eax, [esp + 0x242]
push 0
push eax
mov word [esp + 0x248], 0
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 0x240]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x23c]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0x648], 0
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push 0x478908
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
cmp eax, 0xffffffff
lea ecx, [esp + 0x20]
jne 0x459d4e
mov dword [esp + 0x648], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x459e04
add eax, 1
push eax
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCP80.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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x64c], 1
call dword [sym.imp.MSVCP80.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__]
lea ecx, [esp + 4]
mov byte [esp + 0x648], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.cfg.ini
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.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__]
push 0x200
lea eax, [esp + 0x40]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp dword [esp + 0x38], 8
jae 0x459db6
lea eax, [esp + 0x24]
push eax
push 0x200
lea ecx, [esp + 0x44]
push ecx
push 0x474c4c
push str.VERSION
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.ntdll.dll__wtoi]
add esp, 4
cmp eax, 0x42
mov dword [esp + 0x648], 0xffffffff
lea ecx, [esp + 0x20]
jne 0x459d41
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x640]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.0046d6fd
add esp, 0x648
ret