Function at 0x405c30
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43324a
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x445bbc]
xor eax, esp
mov dword [esp + 0x1b4], eax
push esi
push edi
mov eax, dword [0x445bbc]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x6c]
mov edi, edx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x17], 1
call fcn.00416f60
pop ecx
pop ecx
and dword [esp + 0x1d0], 0
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
and dword [esp + 0x10], 0
test eax, eax
jbe 0x406037
jmp 0x405cc7
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push dword [esp + 0x10]
mov esi, ebx
mov byte [esp + 0x1d4], 1
call fcn.00406b2a
mov eax, dword [eax + 0x14]
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.00406b2a
cmp dword [eax + 0x18], 0x10
jb 0x405cff
mov eax, dword [eax + 4]
jmp 0x405d02
add eax, 4
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x18]
push eax
call fcn.00415a02
mov esi, dword [esp + 0x38]
add esp, 0xc
push dword [esp + 0x10]
call fcn.00406b2a
push eax
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0x1d0], 2
cmp dword [edi + 0x238], 0
jbe 0x405d6b
push 0x438d9c
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
lea eax, [edi + 0x224]
cmp dword [eax + 0x18], 0x10
jb 0x405d5d
mov eax, dword [eax + 4]
jmp 0x405d60
add eax, 4
push eax
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.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__::append_char_const__]
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x1d0], 3
cmp dword [esp + 0x64], 0x10
mov eax, dword [esp + 0x50]
jae 0x405d8f
lea eax, [esp + 0x50]
lea ecx, [esp + 0xa0]
push ecx
push dword [esp + 0x64]
push eax
call fcn.00415a02
add esp, 0xc
push 0xff
lea eax, [esp + 0xc1]
push 0
push eax
mov byte [esp + 0xc8], 0
call sub.MSVCR90.dll_memset
mov esi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x10]
call fcn.00406b2a
cmp dword [eax + 0x18], 0x10
jb 0x405ddb
mov eax, dword [eax + 4]
jmp 0x405dde
add eax, 4
cmp dword [edi + 0xa4], 0x10
jb 0x405def
mov edx, dword [edi + 0x90]
jmp 0x405df5
lea edx, [edi + 0x90]
cmp dword [edi + 0x88], 0x10
jb 0x405e03
mov ecx, dword [edi + 0x74]
jmp 0x405e06
lea ecx, [edi + 0x74]
push eax
push edx
push ecx
lea eax, [esp + 0xc8]
push str._Product_:__s___Version_:__s___packid_:__s_
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
push 0
lea eax, [esp + 0xc0]
push eax
push str.installbegin
call dword [sym.imp.xlstat.dll_XLSTAT_AddStat]
mov edx, dword [esp + 0x6c]
push 8
pop esi
cmp dword [esp + 0x80], esi
jae 0x405e48
lea edx, [esp + 0x6c]
mov ecx, dword [esp + 0xa4]
cmp dword [esp + 0xb8], esi
jae 0x405e5f
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x405e6d
lea eax, [esp + 0x34]
push 1
push dword [ebp + 0x14]
push edx
push ecx
push eax
call fcn.0041505d
add esp, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x405e8f
lea eax, [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x405ed7
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x405eb6
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
jne 0x405ed7
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x405ecc
lea eax, [esp + 0x34]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
call fcn.00406b2a
cmp dword [eax + 0x18], 0x10
jb 0x405eef
mov eax, dword [eax + 4]
jmp 0x405ef2
add eax, 4
cmp dword [edi + 0xa4], 0x10
jb 0x405f03
mov ecx, dword [edi + 0x90]
jmp 0x405f09
lea ecx, [edi + 0x90]
cmp dword [edi + 0x88], 0x10
jb 0x405f17
mov edi, dword [edi + 0x74]
jmp 0x405f1a
add edi, 0x74
push eax
push ecx
push edi
lea eax, [esp + 0xc8]
push str._Product_:__s___Version_:__s___packid_:__s_
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
xor eax, eax
cmp dword [esp + 0x14], eax
push eax
lea eax, [esp + 0xc0]
push eax
jne 0x405f4b
push str.installsuccess
jmp 0x405f50
push str.installfail
call dword [sym.imp.xlstat.dll_XLSTAT_AddStat]
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea esi, [esp + 0x84]
mov byte [esp + 0x1d0], 4
call fcn.004133ba
cmp dword [esp + 0x9c], 0x10
mov edi, dword [esp + 0x88]
jae 0x405f8f
lea edi, [esp + 0x88]
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
call fcn.00406b2a
cmp dword [eax + 0x18], 0x10
jb 0x405fa7
mov eax, dword [eax + 4]
jmp 0x405faa
add eax, 4
cmp dword [esp + 0x14], 0
sete byte [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call fcn.00401094
mov ecx, edi
mov edi, eax
call fcn.00411ed5
mov al, byte [esp + 0x1c]
and byte [esp + 0xf], al
lea ecx, [esp + 0x84]
mov byte [esp + 0x1d0], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x1d0], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d0], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0x1d0], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], eax
jb 0x405cc3
cmp byte [ebp + 0x18], 0
je 0x406064
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x40604f
lea eax, [esp + 0x6c]
push 0
push 0
push eax
push dword [esp + 0x2c]
push dword [esp + 0x38]
call fcn.0041505d
add esp, 0x14
or dword [esp + 0x1d0], 0xffffffff
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.0042860c
mov esp, ebp
pop ebp
ret 0x14