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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40ba9b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12d4
call fcn.0040b4a0
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x12d0], eax
push ebx
push esi
push edi
mov eax, dword [0x411020]
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 + 0xb3c]
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 0x403c24
lea eax, [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x3e7
lea eax, [esp + 0x90c]
push eax
mov edi, 0x40d6dc
push edi
push 0x40d71c
push str.config
call ebx
push edi
lea eax, [esp + 0x908]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403c87
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x403c6c
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 0x403cd9
push 0x40d7b0
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 0x404256
xor ebx, ebx
push ebx
push 0x40d878
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebx
jmp 0x40426d
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.004042ec
test eax, eax
mov dword [esp + 0x20], eax
jne 0x40427a
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 0x403d42
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 0x404246
cmp byte [esi + 0x317], 0
jne 0x40427a
cmp eax, 0xffffffff
jne 0x403d80
push 0x40d7e4
jmp 0x403c9f
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x403d8f
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 0x403dc2
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 0x403def
lea eax, [esp + 0x34]
push eax
push 0x104
lea eax, [esp + 0xd8]
push eax
push edi
push 0x40d810
lea eax, [esp + 0xd0]
push eax
call ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
and dword [esp + 0x14], 1
je 0x403e39
push edi
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403e39
push 0x40d814
jmp 0x403c9f
and ebx, 2
je 0x403e6e
push edi
lea eax, [esp + 0xef0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x403e64
push edi
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403e6e
push 0x40d840
jmp 0x403c9f
xor edi, edi
cmp ebx, edi
je 0x403eeb
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.004042ec
test eax, eax
mov dword [esp + 0x20], eax
je 0x403ee9
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 0x4042a9
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x40423c
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 0x40d874
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40424c
lea eax, [esi + 0x41c]
push eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x403f4e
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.00404d50
cmp eax, edi
je 0x403fbe
push edi
push 0x40d878
push 0x40d880
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push edi
push 0x4e21
push dword [esi]
call ebx
jmp 0x40427a
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.004064e0
add esp, 0x38
mov byte [esp + 0x12f0], 6
cmp dword [esp + 0x80], 0x10
mov eax, dword [esp + 0x6c]
jae 0x404021
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [esi + 0xa38]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x70c]
push 0x40d890
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.00409c86
add esi, 0x934
lea eax, [esp + 0xf4]
push esi
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.00409ba7
push edi
push edi
mov edi, esi
lea ecx, [esp + 0x734]
call fcn.004099d2
mov edi, dword [esp + 0x44]
mov eax, esi
push eax
push edi
lea eax, [esp + 0x434]
push 0x40d8c4
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.00409ba7
push 0
push ebx
lea esi, [esp + 0x314]
call fcn.00409ba7
push ebx
push ebx
mov esi, edi
call fcn.00409ba7
push ebx
push 2
call fcn.00409ba7
push ebx
push ebx
lea ecx, [esp + 0x73c]
call fcn.004099d2
push 0
push ebx
lea edi, [esp + 0x43c]
lea ecx, [esp + 0x744]
call fcn.004099d2
add esp, 0x40
push 0
push ebx
lea edi, [esp + 0x2fc]
lea ecx, [esp + 0xcf4]
call fcn.004099d2
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.00404af3
test al, al
jne 0x404217
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 0x403cac
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 0x403cac
push 6
push 0
jmp 0x40426d
push 0x40d8f4
jmp 0x403c9f
xor edi, edi
push edi
push 0x40d878
push 0x40d904
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.0040aad0
mov esp, ebp
pop ebp
ret