Function at 0x403b13
Capabilities:
Delete file
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40ba5b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12d4
call fcn.0040b460
mov eax, dword [0x410020]
xor eax, esp
mov dword [esp + 0x12d0], eax
push ebx
push esi
push edi
mov eax, dword [0x410020]
xor eax, esp
push eax
lea eax, [esp + 0x12e8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c], 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 + 0x12f0], 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 + 0x12f0], 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 + 0x84]
mov byte [esp + 0x12f0], 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 + 0x12f4], 3
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 2
push 0
push 0x4e21
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
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 0x403beb
lea eax, [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x3e7
lea eax, [esp + 0x90c]
push eax
mov edi, 0x40c6ec
push edi
push 0x40c6f0
push str.config
call ebx
push edi
lea eax, [esp + 0x908]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403c4e
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x403c33
lea eax, [esp + 0x34]
push eax
push 0x3e7
lea eax, [esp + 0x90c]
push eax
push edi
push str.other
push str.config
call ebx
push edi
lea eax, [esp + 0x908]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403ca0
push 0x40c7c4
lea eax, [esi + 0x212]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esi + 0x212]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x404217
xor ebx, ebx
push ebx
push 0x40c88c
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebx
jmp 0x40422e
push 2
push 0
push 0x4e21
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x908]
push eax
xor ecx, ecx
mov ebx, esi
call fcn.004042ad
test eax, eax
mov dword [esp + 0x20], eax
jne 0x40423b
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 0x403d09
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 0x404207
cmp byte [esi + 0x317], 0
jne 0x40423b
cmp eax, 0xffffffff
jne 0x403d47
push 0x40c7f8
jmp 0x403c66
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x403d56
lea eax, [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x104
lea eax, [esp + 0xef4]
push eax
push edi
push str.srcfile
lea eax, [esp + 0xd0]
push eax
call ebx
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x403d89
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0x1f4]
push eax
push edi
push str.destfile
lea eax, [esp + 0xd0]
push eax
call ebx
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x403db6
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0xd8]
push eax
push edi
push 0x40c824
lea eax, [esp + 0xd0]
push eax
call ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
and dword [esp + 0x14], 1
je 0x403e00
push edi
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403e00
push 0x40c828
jmp 0x403c66
and ebx, 2
je 0x403e35
push edi
lea eax, [esp + 0xef0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x403e2b
push edi
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403e35
push 0x40c854
jmp 0x403c66
xor edi, edi
cmp ebx, edi
je 0x403eb2
push 4
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0x4e21
push dword [esi]
call edi
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xef0]
push eax
lea ecx, [esp + 0x1f4]
mov ebx, esi
call fcn.004042ad
test eax, eax
mov dword [esp + 0x20], eax
je 0x403eb0
xor ebx, ebx
push ebx
push ebx
push 0x4e21
push dword [esi]
call edi
lea ecx, [esp + 0x84]
mov byte [esp + 0x12f0], 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 + 0x12f0], 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 + 0x12f0], bl
jmp 0x40426a
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x4041fd
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push 6
push edi
push 0x4e21
push dword [esi]
call ebx
push edi
push edi
push 0x4e20
push dword [esi]
call ebx
push 0x40c888
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40420d
lea eax, [esi + 0x41c]
push eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x403f15
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push dword [esp + 0x34]
mov dword [esp + 0x34], 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 + 0x1328], 4
lea eax, [esp + 0x224]
mov ecx, esp
mov dword [esp + 0x60], 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 + 0x4c]
mov byte [esp + 0x1328], 3
call fcn.00404d10
cmp eax, edi
je 0x403f85
push edi
push 0x40c88c
push 0x40c894
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push edi
push 0x4e21
push dword [esi]
call ebx
jmp 0x40423b
sub esp, 0x1c
lea eax, [esp + 0x208]
mov ecx, esp
mov dword [esp + 0x44], 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 + 0x1328], 5
mov ecx, esp
mov dword [esp + 0x64], 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 + 0x1328], 3
call fcn.004064a0
add esp, 0x38
mov byte [esp + 0x12f0], 6
cmp dword [esp + 0x80], 0x10
mov eax, dword [esp + 0x6c]
jae 0x403fe8
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 + 0x70c]
push 0x40c8a4
push eax
call ebx
lea eax, [esi + 0x628]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0xd04]
push str._suninstall_s
push eax
call ebx
push dword [esp + 0x38]
lea eax, [esp + 0x528]
push str._suninstalluninstall.ini
push eax
call ebx
add esp, 0x2c
lea ecx, [esp + 0x504]
push ecx
lea eax, [esi + 0x318]
lea ecx, [esp + 0xcf0]
push ecx
push eax
lea edx, [esi + 0x830]
lea ecx, [esi + 0x72c]
push eax
mov dword [esp + 0x24], eax
call fcn.00409c46
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.00409b67
push edi
push edi
mov edi, esi
lea ecx, [esp + 0x734]
call fcn.00409992
mov edi, dword [esp + 0x44]
mov eax, esi
push eax
push edi
lea eax, [esp + 0x434]
push 0x40c8d8
push eax
call ebx
add esp, 0x40
mov eax, esi
push eax
push edi
lea eax, [esp + 0x2fc]
push str._s_s
push eax
call ebx
xor ebx, ebx
push 0
inc ebx
push ebx
lea esi, [esp + 0x414]
call fcn.00409b67
push 0
push ebx
lea esi, [esp + 0x314]
call fcn.00409b67
push ebx
push ebx
mov esi, edi
call fcn.00409b67
push ebx
push 2
call fcn.00409b67
push ebx
push ebx
lea ecx, [esp + 0x73c]
call fcn.00409992
push 0
push ebx
lea edi, [esp + 0x43c]
lea ecx, [esp + 0x744]
call fcn.00409992
add esp, 0x40
push 0
push ebx
lea edi, [esp + 0x2fc]
lea ecx, [esp + 0xcf4]
call fcn.00409992
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop ecx
pop ecx
lea eax, [esp + 0x504]
push eax
push dword [esp + 0x1c]
mov edi, str.config
push str.setupdir
push edi
call esi
lea eax, [esp + 0x504]
push eax
push dword [esp + 0x18]
push str.gamename
push edi
call esi
lea eax, [esp + 0x504]
push eax
lea eax, [esp + 0xe8]
push eax
push str.shortcutname
push edi
call esi
lea eax, [esp + 0x504]
push eax
push dword [esp + 0x28]
push str.ProductTitle
push edi
call esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x704]
push eax
mov eax, esi
call fcn.00404ab4
test al, al
jne 0x4041d8
lea ecx, [esp + 0x68]
mov byte [esp + 0x12f0], 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 0x403c73
push 7
push 0
push 0x4e21
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x68]
mov byte [esp + 0x12f0], 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_]
xor edi, edi
cmp dword [esp + 0x20], edi
jne 0x403c73
push 6
push 0
jmp 0x40422e
push 0x40c908
jmp 0x403c66
xor edi, edi
push edi
push 0x40c88c
push 0x40c918
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push edi
push 0x4e21
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x84]
mov byte [esp + 0x12f0], 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 + 0x12f0], 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 + 0x12f0], 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 + 0x12f0], 0xffffffff
lea ecx, [esp + 0xa0]
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 + 0x12e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12d0]
xor ecx, esp
call fcn.0040aa90
mov esp, ebp
pop ebp
ret