Function at 0x403e81
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 0x40d0a4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x13dc
call fcn.0040c8f0
mov eax, dword [0x412020]
xor eax, esp
mov dword [esp + 0x13d8], eax
push ebx
push esi
push edi
mov eax, dword [0x412020]
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 0x403f5b
lea eax, [esp + 0x34]
push eax
push 0x3e7
lea eax, [esp + 0xa14]
push eax
mov ebx, 0x40e808
push ebx
push 0x40e80c
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 0x403fc0
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x403fa1
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 0x40400f
push 0x40e97c
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 0x4046c3
push 0
push 0x40ea80
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404107
push 2
xor ebx, ebx
push ebx
push 0x4e21
push dword [esi]
call edi
mov dword [esp + 0x14], ebx
push ebx
jmp 0x404054
cmp byte [esi + 0x317], 0
jne 0x4046e3
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x14
jge 0x4040e6
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.00404755
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x404024
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 0x4040a8
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 0x4046a7
cmp byte [esi + 0x317], 0
jne 0x4046e3
cmp eax, 0xffffffff
jne 0x404110
push 0x40e9c8
jmp 0x403fd8
push dword [esp + 0x14]
lea eax, [esp + 0xa10]
push eax
lea eax, [esi + 0x212]
push 0x40e9a0
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
push 0
push 0
jmp 0x4046da
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x40411f
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0xffc]
push eax
mov ebx, 0x40e808
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 0x404155
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 0x404186
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0xd8]
push eax
push ebx
push 0x40e9f4
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 0x4041d2
push ebx
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4041d2
push 0x40e9f8
jmp 0x403fd8
mov eax, dword [esp + 0x14]
and eax, 2
mov dword [esp + 0x14], eax
je 0x40420f
push ebx
lea eax, [esp + 0xff8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x404205
push ebx
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40420f
push 0x40ea24
jmp 0x403fd8
xor ebx, ebx
cmp dword [esp + 0x14], ebx
je 0x40427f
push 4
push ebx
push 0x4e21
push dword [esi]
call edi
mov dword [esp + 0x14], ebx
push ebx
jmp 0x40425a
xor ebx, ebx
cmp byte [esi + 0x317], bl
jne 0x4043e9
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x64
jge 0x4043c8
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.00404755
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40422a
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x4046a7
push 6
push ebx
push 0x4e21
push dword [esi]
call edi
push ebx
push ebx
push 0x4e20
push dword [esi]
call edi
push 0x40ea7c
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4046b9
lea eax, [esi + 0x41c]
push eax
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x4042dc
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.00407390
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.00405c00
xor ebx, ebx
cmp eax, ebx
mov eax, dword [esp + 0x6c]
je 0x404427
cmp dword [esp + 0x80], 0x10
jae 0x40438f
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x40ea80
push 0x40ea88
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 0x4043f4
push dword [esp + 0x14]
lea eax, [esp + 0xff8]
push eax
lea eax, [esi + 0x212]
push 0x40ea58
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 0x404712
cmp dword [esp + 0x80], 0x10
jae 0x404435
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 0x40ea98
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.0040ab36
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.0040aa57
push edi
push edi
mov edi, esi
lea ecx, [esp + 0x83c]
call fcn.0040a882
mov eax, esi
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x634]
push 0x40eacc
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.0040aa57
push 0
push edi
lea esi, [esp + 0x724]
call fcn.0040aa57
mov esi, dword [esp + 0x34]
push edi
push edi
call fcn.0040aa57
push edi
push 2
call fcn.0040aa57
push edi
push edi
mov edi, esi
lea ecx, [esp + 0x844]
call fcn.0040a882
push 0
push 1
lea edi, [esp + 0x63c]
lea ecx, [esp + 0x84c]
call fcn.0040a882
add esp, 0x40
push 0
push 1
lea edi, [esp + 0x70c]
lea ecx, [esp + 0xdfc]
call fcn.0040a882
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 0x40e794
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.004050e9
test al, al
jne 0x40467e
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 0x403fe5
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 0x403fe5
push 6
jmp 0x404109
push 0x40eb08
jmp 0x403fd8
xor ebx, ebx
push ebx
push 0x40ea80
push 0x40eb18
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.0040bfb6
mov esp, ebp
pop ebp
ret