Function at 0x404038
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 0x40fb15
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x13dc
call fcn.0040f1c0
mov eax, dword [0x416020]
xor eax, esp
mov dword [esp + 0x13d8], eax
push ebx
push esi
push edi
mov eax, dword [0x416020]
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 0x404112
lea eax, [esp + 0x34]
push eax
push 0x3e7
lea eax, [esp + 0xa14]
push eax
mov ebx, 0x4118b8
push ebx
push 0x411cc4
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 0x404177
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x404158
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 0x4041c6
push 0x411e30
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 0x40487a
push 0
push 0x411f34
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4042be
push 2
xor ebx, ebx
push ebx
push 0x4e21
push dword [esi]
call edi
mov dword [esp + 0x14], ebx
push ebx
jmp 0x40420b
cmp byte [esi + 0x317], 0
jne 0x40489a
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x14
jge 0x40429d
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.0040490c
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4041db
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 0x40425f
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 0x40485e
cmp byte [esi + 0x317], 0
jne 0x40489a
cmp eax, 0xffffffff
jne 0x4042c7
push 0x411e7c
jmp 0x40418f
push dword [esp + 0x14]
lea eax, [esp + 0xa10]
push eax
lea eax, [esi + 0x212]
push 0x411e54
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
push 0
push 0
jmp 0x404891
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x4042d6
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0xffc]
push eax
mov ebx, 0x4118b8
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 0x40430c
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 0x40433d
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0xd8]
push eax
push ebx
push 0x411ea8
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 0x404389
push ebx
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404389
push 0x411eac
jmp 0x40418f
mov eax, dword [esp + 0x14]
and eax, 2
mov dword [esp + 0x14], eax
je 0x4043c6
push ebx
lea eax, [esp + 0xff8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4043bc
push ebx
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4043c6
push 0x411ed8
jmp 0x40418f
xor ebx, ebx
cmp dword [esp + 0x14], ebx
je 0x404436
push 4
push ebx
push 0x4e21
push dword [esi]
call edi
mov dword [esp + 0x14], ebx
push ebx
jmp 0x404411
xor ebx, ebx
cmp byte [esi + 0x317], bl
jne 0x4045a0
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x64
jge 0x40457f
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.0040490c
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4043e1
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x40485e
push 6
push ebx
push 0x4e21
push dword [esi]
call edi
push ebx
push ebx
push 0x4e20
push dword [esi]
call edi
push 0x411f30
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404870
lea eax, [esi + 0x41c]
push eax
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x404493
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.00409c50
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.004084c0
xor ebx, ebx
cmp eax, ebx
mov eax, dword [esp + 0x6c]
je 0x4045de
cmp dword [esp + 0x80], 0x10
jae 0x404546
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x411f34
push 0x411f3c
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 0x4045ab
push dword [esp + 0x14]
lea eax, [esp + 0xff8]
push eax
lea eax, [esi + 0x212]
push 0x411f0c
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 0x4048c9
cmp dword [esp + 0x80], 0x10
jae 0x4045ec
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 0x411f4c
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.0040d3f6
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.0040d317
push edi
push edi
mov edi, esi
lea ecx, [esp + 0x83c]
call fcn.0040d142
mov eax, esi
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x634]
push 0x411f80
push eax
call ebx
add esp, 0x40
mov eax, esi
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x70c]
push 0x411f88
push eax
call ebx
xor edi, edi
push 0
inc edi
push edi
lea esi, [esp + 0x614]
call fcn.0040d317
push 0
push edi
lea esi, [esp + 0x724]
call fcn.0040d317
mov esi, dword [esp + 0x34]
push edi
push edi
call fcn.0040d317
push edi
push 2
call fcn.0040d317
push edi
push edi
mov edi, esi
lea ecx, [esp + 0x844]
call fcn.0040d142
push 0
push 1
lea edi, [esp + 0x63c]
lea ecx, [esp + 0x84c]
call fcn.0040d142
add esp, 0x40
push 0
push 1
lea edi, [esp + 0x70c]
lea ecx, [esp + 0xdfc]
call fcn.0040d142
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 0
lea eax, [esp + 0x2f8]
push 0x4117c4
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 ecx, esi
call fcn.004052a0
test al, al
jne 0x404835
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 0x40419c
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 0x40419c
push 6
jmp 0x4042c0
push 0x411fbc
jmp 0x40418f
xor ebx, ebx
push ebx
push 0x411f34
push 0x411fcc
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.0040e876
mov esp, ebp
pop ebp
ret