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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405250
xor eax, eax
push ebp
push 0x430222
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
test bl, bl
je 0x42fff9
mov eax, dword [ebp - 4]
call fcn.00409c28
xor eax, eax
push ebp
push 0x4301f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409af4
test al, al
jne 0x430020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4301fc
mov eax, dword [0x46b504]
cmp dword [eax], 2
jne 0x43004a
push 5
push 0
mov eax, dword [ebp - 4]
call fcn.00405260
push eax
call sub.kernel32.dll_MoveFileExA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4301e8
mov dl, 1
mov eax, dword [0x41a700]
call fcn.00403e6c
mov dword [ebp - 0xc], eax
push 0xff
lea eax, [ebp - 0x10c]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
xor eax, eax
push ebp
push 0x43010d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00405010
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040dde4
lea eax, [ebp - 0x110]
mov edx, 0x43023c
call fcn.00405068
mov eax, dword [ebp - 0x110]
call fcn.00409af4
test al, al
je 0x430103
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00405010
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.0040dde4
lea eax, [ebp - 0x118]
mov edx, 0x43023c
call fcn.00405068
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43011f
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.00409150
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0x430250
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x430169
mov edx, 0x430250
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
call fcn.00409eec
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov edx, 0x430264
call fcn.004050ac
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00405010
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040dde4
lea eax, [ebp - 0x130]
mov edx, 0x43023c
call fcn.00405068
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0xc]
call fcn.00403e9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4301fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430229
lea eax, [ebp - 0x134]
mov edx, 0xa
call fcn.00404dc4
lea eax, [ebp - 4]
call fcn.00404da0
ret