Function at 0x41ea60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46905a
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4812a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [section..data]
mov ecx, dword [ebp + 0xc]
push 1
mov dword [ebp - 0x14], eax
call fcn.004070b0
mov ecx, dword [ebp + 8]
push eax
call fcn.004070b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x41f179
lea esp, [esp]
lea eax, [ebp - 0xa0]
xor esi, esi
push eax
lea ebx, [esi + 0xf]
call fcn.0041f210
mov dword [ebp - 4], esi
push 0x21
push str.INSTALLER_FAILED_TO_MOVE_THE_FILE
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xe4], esi
mov byte [ebp - 0xf4], 0
call fcn.00407a50
mov byte [ebp - 4], 1
lea edi, [ebp - 0xf8]
call fcn.00419720
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00420a90
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0xe0], 0x10
jb 0x41eb34
mov edx, dword [ebp - 0xf4]
push edx
call fcn.00449824
add esp, 4
push 0xa
lea ecx, [ebp - 0x98]
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xe4], esi
mov byte [ebp - 0xf4], 0
call fcn.00420760
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 4]
xor edi, edi
test byte [ebp + eax - 0x90], 6
jne 0x41eb80
mov eax, dword [ebp + eax - 0x70]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x41eb80
mov edi, 4
cmp edi, esi
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x98]
je 0x41eba8
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], esi
jne 0x41eba1
or eax, 4
push esi
push eax
call fcn.004075f0
push 0xa
lea ecx, [ebp - 0x98]
call fcn.00420760
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
xor edi, edi
test byte [ebp + eax - 0x90], 6
jne 0x41ebe1
mov eax, dword [ebp + eax - 0x70]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x41ebe1
mov edi, 4
cmp edi, esi
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x98]
je 0x41ec09
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], esi
jne 0x41ec02
or eax, 4
push esi
push eax
call fcn.004075f0
mov ecx, dword [ebp + 8]
call fcn.004070b0
mov ebx, eax
cmp ebx, esi
jne 0x41ec1b
xor eax, eax
jmp 0x41ec63
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jle 0x41ec33
xor eax, eax
jmp 0x41ec63
lea eax, [edi + edi]
call fcn.0045ccc0
mov esi, esp
test esi, esi
je 0x41ec5f
mov edx, dword [ebp - 0x14]
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push edx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41ec61
xor eax, eax
xor esi, esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00420a90
add esp, 8
push 0xa
lea ecx, [ebp - 0x98]
call fcn.00420760
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [ebp + eax - 0x90], 6
jne 0x41ecac
mov eax, dword [ebp + eax - 0x70]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x41ecac
mov edi, 4
cmp edi, esi
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x98]
je 0x41ecd4
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], esi
jne 0x41eccd
or eax, 4
push esi
push eax
call fcn.004075f0
push 0xa
lea ecx, [ebp - 0x98]
call fcn.00420760
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
xor edi, edi
test byte [ebp + eax - 0x90], 6
jne 0x41ed0d
mov eax, dword [ebp + eax - 0x70]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x41ed0d
mov edi, 4
cmp edi, esi
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x98]
je 0x41ed35
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], esi
jne 0x41ed2e
or eax, 4
push esi
push eax
call fcn.004075f0
push 0xc
mov ebx, 0xf
push str.INSTALLER_TO
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], esi
mov byte [ebp - 0xbc], 0
call fcn.00407a50
mov byte [ebp - 4], 2
lea edi, [ebp - 0xc0]
call fcn.00419720
push eax
lea edx, [ebp - 0x98]
push edx
call fcn.00420a90
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa8], 0x10
jb 0x41ed9a
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00449824
add esp, 4
push 0xa
lea ecx, [ebp - 0x98]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], esi
mov byte [ebp - 0xbc], 0
call fcn.00420760
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [ebp + eax - 0x90], 6
jne 0x41ede6
mov eax, dword [ebp + eax - 0x70]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x41ede6
mov edi, 4
cmp edi, esi
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x98]
je 0x41ee0e
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], esi
jne 0x41ee07
or eax, 4
push esi
push eax
call fcn.004075f0
push 0xa
lea ecx, [ebp - 0x98]
call fcn.00420760
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
xor edi, edi
test byte [ebp + eax - 0x90], 6
jne 0x41ee47
mov eax, dword [ebp + eax - 0x70]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x41ee47
mov edi, 4
cmp edi, esi
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x98]
je 0x41ee6f
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], esi
jne 0x41ee68
or eax, 4
push esi
push eax
call fcn.004075f0
mov ecx, dword [ebp + 0xc]
call fcn.004070b0
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x41ee83
xor eax, eax
jmp 0x41eecb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jle 0x41ee9b
xor eax, eax
jmp 0x41eecb
lea eax, [edi + edi]
call fcn.0045ccc0
mov esi, esp
test esi, esi
je 0x41eec7
mov edx, dword [ebp - 0x14]
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push edx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41eec9
xor eax, eax
xor esi, esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00420a90
add esp, 8
push 0xa
lea ecx, [ebp - 0x98]
call fcn.00420760
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [ebp + eax - 0x90], 6
jne 0x41ef14
mov eax, dword [ebp + eax - 0x70]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x41ef14
mov edi, 4
cmp edi, esi
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x98]
je 0x41ef3c
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], esi
jne 0x41ef35
or eax, 4
push esi
push eax
call fcn.004075f0
push 0xa
lea ecx, [ebp - 0x98]
call fcn.00420760
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
xor edi, edi
test byte [ebp + eax - 0x90], 6
jne 0x41ef75
mov eax, dword [ebp + eax - 0x70]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x41ef75
mov edi, 4
cmp edi, esi
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x98]
je 0x41ef9d
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], esi
jne 0x41ef96
or eax, 4
push esi
push eax
call fcn.004075f0
push 0x1f
mov ebx, 0xf
push str.INSTALLER_CLOSE_FILES_AND_RETRY
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc8], esi
mov byte [ebp - 0xd8], 0
call fcn.00407a50
mov byte [ebp - 4], 3
lea edi, [ebp - 0xdc]
call fcn.00419720
push eax
lea edx, [ebp - 0x98]
push edx
call fcn.00420a90
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0xc4], 0x10
jb 0x41f002
mov eax, dword [ebp - 0xd8]
push eax
call fcn.00449824
add esp, 4
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc8], esi
mov byte [ebp - 0xd8], 0
call fcn.00420c80
mov byte [ebp - 4], 4
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x41f03b
mov edi, dword [eax + 4]
jmp 0x41f03e
lea edi, [eax + 4]
push 0x50035
push ecx
call fcn.00419780
add esp, 4
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0xfc], ebx
jb 0x41f072
mov eax, dword [ebp - 0x110]
push eax
call fcn.00449824
add esp, 4
cmp edi, 4
mov dword [ebp - 0xfc], 7
mov dword [ebp - 0x100], esi
mov word [ebp - 0x110], si
jne 0x41f19b
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x118], ecx
mov dword [ebp + eax - 0xa0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x94], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [ebp - 4], 0xa
test byte [ebp - 0x54], 1
je 0x41f0ea
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
push eax
call fcn.00449824
add esp, 4
mov eax, dword [ebp - 0x84]
mov dword [eax], esi
mov ecx, dword [ebp - 0x74]
mov dword [ecx], esi
mov edx, dword [ebp - 0x64]
mov dword [edx], esi
mov eax, dword [ebp - 0x80]
mov dword [eax], esi
mov ecx, dword [ebp - 0x70]
mov dword [ecx], esi
mov edx, dword [ebp - 0x60]
mov dword [edx], esi
and dword [ebp - 0x54], 0xfffffffe
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
call fcn.00420020
or esi, 0xffffffff
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x94]
call fcn.0041fc10
lea eax, [ebp - 0x4c]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x4c], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], esi
mov ecx, eax
push ecx
mov dword [ebp - 0x4c], vtable.std::ios_base.0
call fcn.00448b8e
mov ecx, dword [ebp + 0xc]
add esp, 4
push 1
call fcn.004070b0
mov ecx, dword [ebp + 8]
push eax
call fcn.004070b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x41eac0
lea esp, [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449829
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x114]
push eax
mov ecx, str.Failed_to_move_file_from
call fcn.00412ef0
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, 0x4712cc
call fcn.004174f0
mov byte [ebp - 4], 6
mov edx, dword [ebp + 0xc]
push edx
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00414bf0
add esp, 0x1c
mov byte [ebp - 4], 7
push 9
push eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.00412540
push 0x4769b0
lea edx, [ebp - 0x158]
push edx
call fcn.0044e17f
int3