Function at 0x440a60
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x440a68
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040556c
xor eax, eax
push ebp
push 0x440cde
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040df00
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405168
test bl, bl
je 0x440ab5
mov eax, dword [ebp - 4]
call fcn.0040a030
mov byte [ebp - 0x15], al
jmp 0x440ab9
mov byte [ebp - 0x15], 0
xor eax, eax
push ebp
push 0x440ca9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004099e4
test al, al
jne 0x440ae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x440cb3
mov eax, dword [0x49076c]
cmp dword [eax], 2
jne 0x440b01
push 5
push 0
mov eax, dword [ebp - 4]
call fcn.0040557c
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x440c9f
mov dl, 1
mov eax, dword [0x4168b4]
call fcn.004041bc
mov dword [ebp - 0x1c], eax
push 0xff
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
xor eax, eax
push ebp
push 0x440bc4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x11c]
mov ecx, pe_nt_image_headers32
call fcn.00405340
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0xc]
call fcn.0040deb4
lea eax, [ebp - 0x124]
mov ecx, 0x440cf8
mov edx, dword [ebp - 0xc]
call fcn.00405404
mov eax, dword [ebp - 0x124]
call fcn.0040999c
test al, al
je 0x440bba
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x11c]
mov ecx, pe_nt_image_headers32
call fcn.00405340
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x10]
call fcn.0040deb4
lea eax, [ebp - 0x12c]
mov ecx, 0x440cf8
mov edx, dword [ebp - 0x10]
call fcn.00405404
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x440bd6
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408f24
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0x440d0c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x440c20
mov edx, 0x440d0c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409f68
mov ecx, dword [ebp - 0x13c]
lea eax, [ebp - 0x138]
mov edx, 0x440d20
call fcn.00405404
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x11c]
mov ecx, pe_nt_image_headers32
call fcn.00405340
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x14]
call fcn.0040deb4
lea eax, [ebp - 0x144]
mov ecx, 0x440cf8
mov edx, dword [ebp - 0x14]
call fcn.00405404
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x1c]
call fcn.004041ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x440cb3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440ce5
lea eax, [ebp - 0x144]
mov edx, 0xa
call fcn.004050f4
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004050f4
ret