Function at 0x405f3e
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4335bb
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.00417248
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 0x406345
jmp 0x405fd5
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.00406eb2
mov eax, dword [eax + 0x14]
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.00406eb2
cmp dword [eax + 0x18], 0x10
jb 0x40600d
mov eax, dword [eax + 4]
jmp 0x406010
add eax, 4
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x18]
push eax
call fcn.00415ce9
mov esi, dword [esp + 0x38]
add esp, 0xc
push dword [esp + 0x10]
call fcn.00406eb2
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 0x406079
push 0x438e08
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 0x40606b
mov eax, dword [eax + 4]
jmp 0x40606e
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 0x40609d
lea eax, [esp + 0x50]
lea ecx, [esp + 0xa0]
push ecx
push dword [esp + 0x64]
push eax
call fcn.00415ce9
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.00406eb2
cmp dword [eax + 0x18], 0x10
jb 0x4060e9
mov eax, dword [eax + 4]
jmp 0x4060ec
add eax, 4
cmp dword [edi + 0xa4], 0x10
jb 0x4060fd
mov edx, dword [edi + 0x90]
jmp 0x406103
lea edx, [edi + 0x90]
cmp dword [edi + 0x88], 0x10
jb 0x406111
mov ecx, dword [edi + 0x74]
jmp 0x406114
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 0x406156
lea edx, [esp + 0x6c]
mov ecx, dword [esp + 0xa4]
cmp dword [esp + 0xb8], esi
jae 0x40616d
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x40617b
lea eax, [esp + 0x34]
push 1
push dword [ebp + 0x14]
push edx
push ecx
push eax
call fcn.00415344
add esp, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x40619d
lea eax, [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x4061e5
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x4061c4
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
jne 0x4061e5
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x4061da
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.00406eb2
cmp dword [eax + 0x18], 0x10
jb 0x4061fd
mov eax, dword [eax + 4]
jmp 0x406200
add eax, 4
cmp dword [edi + 0xa4], 0x10
jb 0x406211
mov ecx, dword [edi + 0x90]
jmp 0x406217
lea ecx, [edi + 0x90]
cmp dword [edi + 0x88], 0x10
jb 0x406225
mov edi, dword [edi + 0x74]
jmp 0x406228
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 0x406259
push str.installsuccess
jmp 0x40625e
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.0041369f
cmp dword [esp + 0x9c], 0x10
mov edi, dword [esp + 0x88]
jae 0x40629d
lea edi, [esp + 0x88]
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
call fcn.00406eb2
cmp dword [eax + 0x18], 0x10
jb 0x4062b5
mov eax, dword [eax + 4]
jmp 0x4062b8
add eax, 4
cmp dword [esp + 0x14], 0
sete byte [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call fcn.00401078
mov ecx, edi
mov edi, eax
call fcn.004121e9
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 0x405fd1
cmp byte [ebp + 0x18], 0
je 0x406372
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x40635d
lea eax, [esp + 0x6c]
push 0
push 0
push eax
push dword [esp + 0x2c]
push dword [esp + 0x38]
call fcn.00415344
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.0042898c
mov esp, ebp
pop ebp
ret 0x14