Function at 0x405e42
Capabilities:
Access peb ldr_data
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43347f
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x445bbc]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x445bbc]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x17], 1
call fcn.0041709a
pop ecx
pop ecx
and dword [esp + 0xd0], 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 0x4061d1
lea ecx, [esp + 0x34]
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 + 0xd4], 1
call fcn.00406d22
push dword [esp + 0x10]
mov edi, dword [eax + 0x14]
call fcn.00406d22
cmp dword [eax + 0x18], 0x10
jb 0x405f08
mov eax, dword [eax + 4]
jmp 0x405f0b
add eax, 4
lea ecx, [esp + 0x34]
push ecx
push edi
push eax
call fcn.00415b3b
mov esi, dword [esp + 0x34]
add esp, 0xc
push dword [esp + 0x10]
call fcn.00406d22
push eax
lea ecx, [esp + 0x54]
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 esi, dword [esp + 0x18]
xor edi, edi
mov byte [esp + 0xd0], 2
cmp dword [esi + 0x270], edi
jbe 0x405f76
push 0x438e10
lea ecx, [esp + 0x54]
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, [esi + 0x25c]
cmp dword [eax + 0x18], 0x10
jb 0x405f68
mov eax, dword [eax + 4]
jmp 0x405f6b
add eax, 4
push eax
lea ecx, [esp + 0x54]
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 + 0xa4]
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 + 0xd0], 3
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
jae 0x405f9a
lea eax, [esp + 0x54]
lea ecx, [esp + 0xa4]
push ecx
push dword [esp + 0x68]
push eax
call fcn.00415b3b
mov esi, dword [esp + 0x20]
add esp, 0xc
push dword [esp + 0x10]
call fcn.00406d22
cmp dword [eax + 0x18], 0x10
jb 0x405fc7
mov eax, dword [eax + 4]
jmp 0x405fca
add eax, 4
mov ecx, dword [esp + 0x18]
push dword [ecx + 0x284]
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push str.installbegin
call dword [sym.imp.xlstat4.dll_XLSTAT4_TrackEvent]
mov edx, dword [esp + 0x70]
push 8
pop esi
cmp dword [esp + 0x84], esi
jae 0x405ffa
lea edx, [esp + 0x70]
mov ecx, dword [esp + 0xa8]
cmp dword [esp + 0xbc], esi
jae 0x406011
lea ecx, [esp + 0xa8]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x40601f
lea eax, [esp + 0x38]
push 1
push dword [ebp + 0x18]
push edx
push ecx
push eax
call fcn.00415196
add esp, 0x14
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x406041
lea eax, [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x406088
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x406068
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
jne 0x406088
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x40607e
lea eax, [esp + 0x38]
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
call fcn.00406d22
cmp dword [esp + 0x1c], edi
jne 0x4060c1
cmp dword [eax + 0x18], 0x10
jb 0x4060a6
mov eax, dword [eax + 4]
jmp 0x4060a9
add eax, 4
mov ecx, dword [esp + 0x18]
push dword [ecx + 0x284]
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push str.installsuccess
jmp 0x4060e5
cmp dword [eax + 0x18], 0x10
jb 0x4060cc
mov eax, dword [eax + 4]
jmp 0x4060cf
add eax, 4
mov ecx, dword [esp + 0x18]
push dword [ecx + 0x284]
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push str.installfail
call dword [sym.imp.xlstat4.dll_XLSTAT4_TrackEvent]
lea ecx, [esp + 0x88]
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 + 0x88]
mov byte [esp + 0xd0], 4
call fcn.004134f3
cmp dword [esp + 0xa0], 0x10
mov eax, dword [esp + 0x8c]
jae 0x406124
lea eax, [esp + 0x8c]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.00406d22
cmp dword [eax + 0x18], 0x10
jb 0x406140
mov eax, dword [eax + 4]
jmp 0x406143
add eax, 4
cmp dword [esp + 0x1c], edi
sete byte [esp + 0x24]
push dword [esp + 0x24]
push eax
call fcn.00401078
mov ecx, dword [esp + 0x28]
mov edi, eax
call fcn.00412010
mov al, byte [esp + 0x24]
and byte [esp + 0xf], al
lea ecx, [esp + 0x88]
mov byte [esp + 0xd0], 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 + 0xa4]
mov byte [esp + 0xd0], 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 + 0x50]
mov byte [esp + 0xd0], 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 + 0x34]
mov byte [esp + 0xd0], 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 0x405ed4
cmp byte [ebp + 0x1c], 0
je 0x4061fe
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x4061e9
lea eax, [esp + 0x70]
push 0
push 0
push eax
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.00415196
add esp, 0x14
or dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x6c]
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 + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00428868
mov esp, ebp
pop ebp
ret 0x18