Function at 0x406072
Capabilities:
Move file

Disassembly:
push 0x39c
mov eax, 0x47da5e
call fcn.0047a79b
mov esi, ecx
mov dword [ebp - 0x28], esi
mov byte [esi], 1
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x24]
push eax
mov edi, 0x4cabb4
mov ecx, edi
call fcn.0040f1e2
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.0040f1ab
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x20], eax
jne 0x406b9a
cmp edi, dword [ebp - 0x5c]
jne 0x406b9a
mov edi, dword [ebp - 0x1c]
push edi
lea ecx, [esi + 4]
call fcn.0040ee07
cmp dword [esi + 0x14], ebx
jne 0x406b8e
push edi
lea ecx, [esi + 0x18]
call fcn.0040ee07
mov dword [esi + 0x14], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 1
push 0x401
lea ecx, [ebp - 0x50]
call fcn.00410f2e
xor ecx, ecx
inc ecx
mov dword [ebp - 0x70], ecx
test ecx, ecx
js 0x406a91
push 0x1a
pop eax
push 0xf
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x8c], eax
mov edi, ebx
mov dword [ebp - 0x38], ebx
mov ecx, 0x4cabb4
call fcn.0040f18a
cmp edi, eax
jae 0x406a88
push edi
mov ecx, 0x4cabb4
call fcn.0040f15c
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x8c]
jne 0x406a7f
cmp byte [eax + 0x29], 0
jne 0x406a7f
cmp byte [eax + 0x2a], 0
jne 0x406a7f
cmp byte [eax + 0x2b], 0
jne 0x406a7f
add eax, 8
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, eax
call fcn.0041011a
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00441140
mov edi, eax
mov byte [ebp - 4], 2
mov ecx, dword [edi]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x48d4b4]
mov ecx, edi
call esi
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e0]
call fcn.004049a1
test bl, bl
je 0x4061d0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x50]
call fcn.00410165
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041011a
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x104]
call fcn.00431790
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x104]
call fcn.0041011a
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xf4]
call fcn.0041011a
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x40], 0x49d894
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x3c], edi
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [esi + 0x14]
call fcn.0040ecfe
lea eax, [ebp - 0xac]
push eax
lea ecx, [esi + 0x14]
call fcn.0040ecc7
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xa8]
cmp dword [ebp - 0x30], ecx
jne 0x40626a
cmp eax, dword [ebp - 0xac]
je 0x4062d2
lea ecx, [ebp - 0x34]
call fcn.0040ec46
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x124]
push ecx
mov ecx, eax
call fcn.0041011a
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 2
pop ecx
call fcn.00402009
add esp, 0x10
test eax, eax
je 0x4062a6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
jmp 0x406257
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.0041011a
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0xb0]
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x40655d
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov byte [ebp - 4], 5
push 0x23
push str.Creating_temporary_trash_directory
lea ecx, [ebp - 0x9c]
call fcn.00416670
mov byte [ebp - 4], 6
push dword [ebp - 0x20]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x50]
call fcn.00404d13
pop ecx
pop ecx
test al, al
jne 0x40642b
push ecx
push ecx
mov eax, esp
mov dword [eax], str.CreateDirectory__
mov dword [eax + 4], 0x11
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea ecx, [ebp - 0x288]
call fcn.004024a8
mov byte [ebp - 4], 7
cmp dword [ebp - 0x258], 3
jne 0x40635a
cmp dword [ebp - 0x254], ebx
je 0x406417
push 0x49a768
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x174]
call fcn.00411ad4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x50]
push ecx
mov edx, eax
lea ecx, [ebp - 0x164]
call fcn.00411a06
mov byte [ebp - 4], 9
push 0x49a750
mov edx, eax
lea ecx, [ebp - 0x154]
call fcn.00411e8a
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x288]
call fcn.0042c540
push dword [eax + 4]
push dword [eax]
mov edx, esi
lea ecx, [ebp - 0x144]
call fcn.00411e00
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
xor edx, edx
inc edx
mov ecx, eax
call fcn.00404b3c
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x144]
call fcn.004100f5
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x154]
call fcn.004100f5
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x164]
call fcn.004100f5
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x174]
call fcn.004100f5
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x288]
call fcn.004025b0
jmp 0x40654e
push 0x20
call fcn.0043aea0
pop ecx
mov ecx, eax
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x40646f
mov dword [ebp - 0x18], ecx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 0x12
lea eax, [ecx + 0x10]
mov dword [ebp - 0x88], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov byte [ebp - 4], 0x10
jmp 0x406471
mov ecx, ebx
mov byte [ebp - 4], 6
push ecx
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.0040ed2b
lea eax, [ebp - 0x104]
push eax
mov ecx, edi
call fcn.0040ec83
mov ecx, eax
call fcn.00410165
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.0040ec83
lea ecx, [eax + 0x10]
call fcn.00410165
lea eax, [ebp - 0xbc]
push eax
mov ecx, edi
call fcn.0040ec83
lea ecx, [eax + 0x10]
call fcn.0041011a
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0xb8]
mov dword [ebp - 0x3c], edi
push 0x49a768
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x1a4]
call fcn.00411ad4
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x50]
push ecx
mov edx, eax
lea ecx, [ebp - 0x194]
call fcn.00411a06
mov byte [ebp - 4], 0x16
push 0x49a76c
mov edx, eax
lea ecx, [ebp - 0x184]
call fcn.00412774
add esp, 0xc
mov byte [ebp - 4], 0x17
xor edx, edx
mov ecx, eax
call fcn.00404b3c
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x184]
call fcn.004100f5
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x194]
call fcn.004100f5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a4]
call fcn.004100f5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9c]
call fcn.004100f5
mov dword [ebp - 0x84], 0x4a8500
mov byte [ebp - 0x80], bl
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 0x1d
test edi, edi
jne 0x40664c
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [edi + 8]
call fcn.0041011a
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00404b5b
pop ecx
pop ecx
test al, al
jne 0x4065d8
push ecx
push ecx
mov ecx, esp
push str.MoveFileEx__
call fcn.00411b53
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea ecx, [ebp - 0x344]
call fcn.004024a8
push 0x4c31b0
lea eax, [ebp - 0x344]
push eax
call fcn.0046b639
lea eax, [ebp - 0x50]
push eax
lea ecx, [edi + 0x18]
call fcn.00410165
mov byte [edi + 0x2b], 1
push dword [ebp - 0x38]
lea ecx, [esi + 4]
call fcn.0040edbb
lea eax, [edi + 8]
push eax
mov edx, str.Renaming_file_
lea ecx, [ebp - 0x1c4]
call fcn.004127c4
mov byte [ebp - 4], 0x1e
mov edx, eax
lea ecx, [ebp - 0x1b4]
call fcn.00412816
pop ecx
mov byte [ebp - 4], 0x1f
xor edx, edx
mov ecx, eax
call fcn.00404b3c
mov byte [ebp - 4], 0x20
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x1b4]
call fcn.004100f5
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1c4]
jmp 0x40674a
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push edi
push dword [ebp - 0x40]
lea ecx, [ebp - 0x1d4]
call fcn.00431650
add esp, 0x10
mov byte [ebp - 4], 0x22
push eax
lea ecx, [ebp - 0x50]
call fcn.00410eea
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1d4]
call fcn.004100f5
mov eax, 0x4ca5a8
cmp dword [ebp - 0x48], 0
cmovne eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x1c]
lea ecx, [edi + 8]
push ebx
push eax
call fcn.0040fdda
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4066db
push ecx
push ecx
mov ecx, esp
push str.MoveFileEx__
call fcn.00411b53
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea ecx, [ebp - 0x3a8]
call fcn.004024a8
push 0x4c31b0
lea eax, [ebp - 0x3a8]
jmp 0x4065d2
lea eax, [ebp - 0x50]
push eax
lea ecx, [edi + 0x18]
call fcn.00410165
mov byte [edi + 0x2a], 1
push dword [ebp - 0x38]
lea ecx, [esi + 4]
call fcn.0040edbb
lea eax, [edi + 8]
push eax
mov edx, str.Moving_file_
lea ecx, [ebp - 0x1f4]
call fcn.00412868
mov byte [ebp - 4], 0x24
mov edx, eax
lea ecx, [ebp - 0x1e4]
call fcn.004128ba
pop ecx
mov byte [ebp - 4], 0x25
xor edx, edx
mov ecx, eax
call fcn.00404b3c
mov byte [ebp - 4], 0x26
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x1e4]
call fcn.004100f5
mov byte [ebp - 4], 0x27
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1f4]
call fcn.004100f5
mov dword [ebp - 4], 0x1c
jmp 0x406a5e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.00401e72
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.00402a60
mov edi, dword [ebp - 0x38]
inc edi
mov dword [ebp - 0x38], edi
jmp 0x406124
mov ecx, dword [ebp - 0x70]
dec ecx
jmp 0x406105
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.0040eca8
test eax, eax
je 0x406b7a
mov ecx, edi
call fcn.0040eca8
mov dword [ebp - 0x18], eax
mov ecx, 0x4cabb4
call fcn.0040f18a
mov ecx, dword [ebp - 0x18]
add ecx, eax
cmp dword [0x4cabb4], 0
jne 0x406b66
push ecx
mov ecx, 0x4cabb8
call fcn.0040ee07
mov dword [0x4cabb4], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.0040ecfe
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.0040ecc7
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x30], eax
jne 0x406aff
cmp edi, dword [ebp - 0x78]
je 0x406b7a
lea ecx, [ebp - 0x34]
call fcn.0040ec46
mov dword [ebp - 0x18], eax
push 0x30
call fcn.0043aea0
pop ecx
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 0x37
test eax, eax
je 0x406b33
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
push ecx
push 0x1c
push ebx
mov ecx, eax
call fcn.00403767
jmp 0x406b35
mov eax, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], 1
mov byte [ebp - 4], 0x38
mov byte [ebp - 0x20], bl
push eax
mov ecx, 0x4cabb4
call fcn.0040f254
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0040eba8
inc edi
mov dword [ebp - 0x34], edi
jmp 0x406af2
push 0x94
mov edx, str.ncvector_struct_Uninst::UninstParam_::reserve
mov ecx, str._af_
call fcn.00417c20
mov byte [esi], bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004100f5
call fcn.0047a6e8
ret
push 0x94
mov edx, str.ncvector_struct_Uninst::MoveFilesToTrash::Trash_::reserve
jmp 0x406b70
lea ecx, [ebp - 0x24]
call fcn.0040f135
cmp dword [eax + 4], 0x1a
je 0x406bae
cmp dword [eax + 4], 0xf
jne 0x406bc0
cmp byte [eax + 0x29], bl
jne 0x406bc0
cmp byte [eax + 0x2a], bl
jne 0x406bc0
cmp byte [eax + 0x2b], bl
jne 0x406bc0
inc dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x24], edi
jmp 0x4060ac