Function at 0x40e752
Capabilities:
Get file attributes
Read .ini file

Disassembly:
mov eax, 0x412679
call fcn.004111a0
sub esp, 0x214
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x14]
push ebx
mov dword [ebp - 0x18], esi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esi + 0x24]
lea eax, [ebp - 0xd]
push eax
mov dword [ebp - 4], ebx
lea ecx, [edi + 4]
mov dword [ebp - 0x14], edi
call fcn.0040db15
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00404baf
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x34]
push ebx
mov byte [ebp - 4], 2
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x44]
push ebx
mov byte [ebp - 4], 3
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x54]
push ebx
mov byte [ebp - 4], 4
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x64]
push ebx
mov byte [ebp - 4], 5
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x74]
push ebx
mov byte [ebp - 4], 6
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x84]
push ebx
mov byte [ebp - 4], 7
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x94]
push ebx
mov byte [ebp - 4], 8
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0xa4]
push ebx
mov byte [ebp - 4], 9
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov byte [ebp - 4], 0xa
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0xb4]
push ebx
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0xc4]
push ebx
mov byte [ebp - 4], 0xb
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
lea edi, [esi + 0xd4]
push ebx
push ebx
mov ecx, edi
mov byte [ebp - 4], 0xc
mov byte [edi], al
call fcn.00401558
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov al, byte [ebp + 0xb]
lea edi, [esi + 0xe0]
push ebx
push ebx
mov ecx, edi
mov byte [ebp - 4], 0xd
mov byte [edi], al
call fcn.00401558
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
cmp dword [ebp + 8], ebx
lea edi, [esi + 0xec]
mov byte [ebp - 4], 0xe
mov dword [edi], 0x415654
mov dword [esi], 0x41578c
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
je 0x40e8de
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [esi + 0x14]
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x220]
push 0x104
push eax
push ebx
mov dword [esi + 0xf0], edi
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40e912
cmp byte [ebp + eax - 0x220], 0x5c
jne 0x40e8fa
mov byte [ebp + eax - 0x220], bl
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea edi, [esi + 0xc4]
push eax
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
push str._settings.ini
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push str._settings.ini
mov ecx, edi
call dword [sym.imp.MSVCP60.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__::append_char_const___unsigned_int_]
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x40e95a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40e96a
cmp eax, 0xffffffff
jne 0x40e9a0
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
push str._settings.ini
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push str._settings.ini
mov ecx, edi
call dword [sym.imp.MSVCP60.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__::append_char_const___unsigned_int_]
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x40e9ad
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x11c]
push 0x104
push eax
push str.http:__www.PPS.tv_
push str.hyperurl
push 0x419ab8
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [esi + 0x54]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
mov eax, dword [esi + 0xc8]
cmp eax, ebx
jne 0x40e9fe
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push 0x419de8
push str.version
push 0x419ab8
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [esi + 0x84]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
mov eax, dword [esi + 0xc8]
cmp eax, ebx
jne 0x40ea4c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push 0x419de8
push 0x41957c
push 0x419ab8
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [esi + 0x64]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
mov eax, dword [esi + 0xc8]
cmp eax, ebx
jne 0x40ea97
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push 0x419de8
push str.software
push 0x419ab8
call edi
lea eax, [ebp - 0x11c]
test eax, eax
je 0x40eae5
cmp byte [ebp - 0x11c], bl
je 0x40eae5
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [esi + 0x14]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
mov eax, dword [esi + 0xc8]
cmp eax, ebx
jne 0x40eaf4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push 0x419de8
push str.rerun
push 0x419ab8
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [esi + 0x74]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4