Function at 0x40442c
Capabilities:
Delete file
Get number of processors
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c9fb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x13dc
call fcn.0040c2e0
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x13d8], eax
push ebx
push esi
push edi
mov eax, dword [0x411020]
xor eax, esp
push eax
lea eax, [esp + 0x13f0]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x24], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [esp + 0x13f8], 0
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13f8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x13f8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esi + 8]
push eax
mov byte [esp + 0x13fc], 3
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 2
push 0
push 0x4e21
push dword [esi]
call edi
lea eax, [esi + 0xa38]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.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__]
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x404506
lea eax, [esp + 0x34]
push eax
push 0x3e7
lea eax, [esp + 0xa14]
push eax
mov ebx, 0x40d8a8
push ebx
push 0x40d8ac
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea eax, [esp + 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40456b
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x40454c
lea eax, [esp + 0x34]
push eax
push 0x3e7
lea eax, [esp + 0xa14]
push eax
push ebx
push str.other
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea eax, [esp + 0xa10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4045ba
push 0x40d9e8
lea eax, [esi + 0x212]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [esi + 0x212]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x404c6e
push 0
push 0x40daec
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4046b2
push 2
xor ebx, ebx
push ebx
push 0x4e21
push dword [esi]
call edi
mov dword [esp + 0x14], ebx
push ebx
jmp 0x4045ff
cmp byte [esi + 0x317], 0
jne 0x404c8e
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x14
jge 0x404691
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0
setg al
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xa14]
push eax
xor ecx, ecx
mov ebx, esi
call fcn.00404d00
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4045cf
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.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__]
push 0
lea eax, [esp + 0xc0]
push str.list_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp dword [esp + 0x48], 0x10
jae 0x404653
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
push str.action
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x404c52
cmp byte [esi + 0x317], 0
jne 0x404c8e
cmp eax, 0xffffffff
jne 0x4046bb
push 0x40da34
jmp 0x404583
push dword [esp + 0x14]
lea eax, [esp + 0xa10]
push eax
lea eax, [esi + 0x212]
push 0x40da0c
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
push 0
push 0
jmp 0x404c85
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x4046ca
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0xffc]
push eax
mov ebx, 0x40d8a8
push ebx
push str.srcfile
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x404700
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0x1f4]
push eax
push ebx
push str.destfile
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x404731
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0xd8]
push eax
push ebx
push 0x40da60
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x14]
and eax, 1
mov dword [esp + 0x20], eax
je 0x40477d
push ebx
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40477d
push 0x40da64
jmp 0x404583
mov eax, dword [esp + 0x14]
and eax, 2
mov dword [esp + 0x14], eax
je 0x4047ba
push ebx
lea eax, [esp + 0xff8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4047b0
push ebx
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4047ba
push 0x40da90
jmp 0x404583
xor ebx, ebx
cmp dword [esp + 0x14], ebx
je 0x40482a
push 4
push ebx
push 0x4e21
push dword [esi]
call edi
mov dword [esp + 0x14], ebx
push ebx
jmp 0x404805
xor ebx, ebx
cmp byte [esi + 0x317], bl
jne 0x404994
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x64
jge 0x404973
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], ebx
setg al
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xffc]
push eax
lea ecx, [esp + 0x1f8]
mov ebx, esi
call fcn.00404d00
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4047d5
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x404c52
push 6
push ebx
push 0x4e21
push dword [esi]
call edi
push ebx
push ebx
push 0x4e20
push dword [esi]
call edi
push 0x40dae8
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404c64
lea eax, [esi + 0x41c]
push eax
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x404887
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
sub esp, 0x1c
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x208]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov byte [esp + 0x1430], 4
mov ecx, esp
mov dword [esp + 0x60], esp
push dword [esp + 0x50]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ebx, [esp + 0xa0]
mov byte [esp + 0x1430], 3
call fcn.00407080
add esp, 0x1c
mov byte [esp + 0x1414], 5
mov ecx, esp
mov dword [esp + 0x44], esp
push dword [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov byte [esp + 0x1430], 6
lea eax, [esp + 0x224]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x58]
mov byte [esp + 0x1430], 5
call fcn.004058f0
xor ebx, ebx
cmp eax, ebx
mov eax, dword [esp + 0x6c]
je 0x4049d2
cmp dword [esp + 0x80], 0x10
jae 0x40493a
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x40daec
push 0x40daf4
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebx
push 0x4e21
push dword [esi]
call edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x13f8], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40499f
push dword [esp + 0x14]
lea eax, [esp + 0xff8]
push eax
lea eax, [esi + 0x212]
push 0x40dac4
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
push ebx
push ebx
push 0x4e21
push dword [esi]
call edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0x13f8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13f8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x13f8], bl
jmp 0x404cbd
cmp dword [esp + 0x80], 0x10
jae 0x4049e0
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.MSVCR80.dll_sprintf]
lea edi, [esi + 0x934]
push edi
push dword [esp + 0x1c]
lea eax, [esp + 0x814]
push 0x40db04
push eax
call ebx
lea eax, [esi + 0x628]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xe0c]
push str._suninstall_s
push eax
call ebx
push dword [esp + 0x38]
lea eax, [esp + 0x420]
push str._suninstalluninstall.ini
push eax
call ebx
add esp, 0x2c
lea ecx, [esp + 0x3fc]
push ecx
lea eax, [esi + 0x318]
lea ecx, [esp + 0xdf8]
push ecx
push eax
lea edx, [esi + 0x830]
lea ecx, [esi + 0x72c]
push eax
mov dword [esp + 0x24], eax
call fcn.0040a82a
lea eax, [esp + 0xf4]
push edi
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [esp + 0xfc]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
xor edi, edi
push edi
push edi
lea esi, [esp + 0x10c]
mov byte [eax], 0
call fcn.0040a74b
push edi
push edi
mov edi, esi
lea ecx, [esp + 0x83c]
call fcn.0040a576
mov eax, esi
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x634]
push 0x40db38
push eax
call ebx
add esp, 0x40
mov eax, esi
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x70c]
push str._s_s
push eax
call ebx
xor edi, edi
push 0
inc edi
push edi
lea esi, [esp + 0x614]
call fcn.0040a74b
push 0
push edi
lea esi, [esp + 0x724]
call fcn.0040a74b
mov esi, dword [esp + 0x34]
push edi
push edi
call fcn.0040a74b
push edi
push 2
call fcn.0040a74b
push edi
push edi
mov edi, esi
lea ecx, [esp + 0x844]
call fcn.0040a576
push 0
push 1
lea edi, [esp + 0x63c]
lea ecx, [esp + 0x84c]
call fcn.0040a576
add esp, 0x40
push 0
push 1
lea edi, [esp + 0x70c]
lea ecx, [esp + 0xdfc]
call fcn.0040a576
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop ecx
pop ecx
lea eax, [esp + 0x3fc]
push eax
push dword [esp + 0x1c]
mov esi, str.config
push str.setupdir
push esi
call edi
lea eax, [esp + 0x3fc]
push eax
push dword [esp + 0x18]
push str.gamename
push esi
call edi
lea eax, [esp + 0x3fc]
push eax
lea eax, [esp + 0xe8]
push eax
push str.shortcutname
push esi
call edi
lea eax, [esp + 0x3fc]
push eax
push dword [esp + 0x30]
push str.ProductTitle
push esi
call edi
push 0x103
lea eax, [esp + 0x2f9]
push 0
push eax
mov byte [esp + 0x300], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
lea eax, [esp + 0x2f8]
push 0x40d864
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x3fc]
push eax
lea eax, [esp + 0x2f8]
push eax
push str.OnlineType
push esi
call edi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x80c]
push eax
mov eax, esi
call fcn.00405694
test al, al
jne 0x404c29
lea ecx, [esp + 0x68]
mov byte [esp + 0x13f8], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404590
push 7
push 0
push 0x4e21
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x68]
mov byte [esp + 0x13f8], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esp + 0x1c], 0
jne 0x404590
push 6
jmp 0x4046b4
push 0x40db74
jmp 0x404583
xor ebx, ebx
push ebx
push 0x40daec
push 0x40db84
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebx
push 0x4e21
push dword [esi]
call edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0x13f8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13f8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x13f8], 0
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [esp + 0x13f8], 0xffffffff
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x13f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13d8]
xor ecx, esp
call fcn.0040ba0c
mov esp, ebp
pop ebp
ret