Function at 0x42d630
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.00404b64
xor eax, eax
push ebp
push 0x42d8ca
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x42d6a6
mov eax, dword [ebp - 4]
call fcn.00408f4c
mov byte [ebp - 5], al
jmp 0x42d6aa
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x42d89a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408d00
test al, al
jne 0x42d6d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42d8a4
mov eax, dword [0x470080]
cmp dword [eax], 2
jne 0x42d6f2
push 5
push 0
mov eax, dword [ebp - 4]
call fcn.00404b74
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x42d890
mov dl, 1
mov eax, dword [0x415ca0]
call fcn.004037f8
mov dword [ebp - 0xc], eax
push 0xff
lea eax, [ebp - 0x10c]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
xor eax, eax
push ebp
push 0x42d7b5
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.00404924
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040d17c
lea eax, [ebp - 0x110]
mov edx, 0x42d8e4
call fcn.0040497c
mov eax, dword [ebp - 0x110]
call fcn.00408d00
test al, al
je 0x42d7ab
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404924
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.0040d17c
lea eax, [ebp - 0x118]
mov edx, 0x42d8e4
call fcn.0040497c
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 0x42d7c7
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.004083d4
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0x42d8f8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x42d811
mov edx, 0x42d8f8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
call fcn.00409250
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov edx, 0x42d90c
call fcn.004049c0
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.00404924
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040d17c
lea eax, [ebp - 0x130]
mov edx, 0x42d8e4
call fcn.0040497c
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.00403828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42d8a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d8d1
lea eax, [ebp - 0x134]
mov edx, 0xa
call fcn.004046c8
lea eax, [ebp - 4]
call fcn.004046a4
ret