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

Disassembly:
push 0xffffffffffffffff
push 0x40bc1b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x40f10c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40f10c]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x164]
mov esi, dword [esp + 0x158]
mov ebp, dword [esp + 0x160]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push 0x1000
push 0x410188
push 1
push 0
mov dword [esp + 0x2c], ecx
call sub.WINSPOOL.DRV_EnumMonitorsA
test eax, eax
je 0x4016f6
xor edi, edi
cmp edi, dword [esp + 0x1c]
jge 0x40145e
lea esp, [esp]
mov ecx, dword [edi*4 + 0x410188]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40145a
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x401440
cmp edi, dword [esp + 0x1c]
jne 0x401484
mov edx, dword [0x410080]
push 0x817
push edx
lea ecx, [esp + 0x1c]
call fcn.00401030
mov edi, dword [esp + 0x14]
push ebp
call fcn.00401190
jmp 0x40173b
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x1000
push 0x410188
push 2
push 0
call sub.WINSPOOL.DRV_EnumPortsA
test eax, eax
je 0x4016b5
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jle 0x4014ce
mov edi, 0x41018c
mov edx, dword [edi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401520
inc ebx
add edi, 0x14
cmp ebx, dword [esp + 0x1c]
jl 0x4014b6
push ebp
push 0
push 0
call sub.WINSPOOL.DRV_DeleteMonitorA
test eax, eax
jne 0x401530
mov ecx, dword [0x410080]
push 0x81a
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401030
mov edx, dword [0x410080]
push 0x80b
push edx
lea ecx, [esp + 0x20]
call fcn.00401030
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
push 0
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x18]
jmp 0x401735
mov eax, dword [0x410080]
push 0x819
push eax
jmp 0x40146c
push 0x100
push 0x410088
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40157c
mov edx, dword [0x410080]
push 0x80b
push edx
lea ecx, [esp + 0x20]
call fcn.00401030
mov eax, dword [eax]
push 0
push eax
push str.GetSystemDirectory_error_
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040210a
add esp, 4
jmp 0x401744
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40c2c4
push 0x410088
call edi
mov edx, dword [esp + 0x18]
push 1
mov ecx, esi
call fcn.00401230
add esp, 4
test eax, eax
je 0x401744
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], vtable.LocalREG.0
mov dword [esp + 0x40], ebx
push 0x80000002
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x164], ebx
call fcn.004019e0
test eax, eax
je 0x401606
push ebp
lea eax, [esp + 0x28]
push eax
call fcn.00401ae0
lea ecx, [esp + 0x24]
push ecx
call fcn.00401a60
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40167d
push eax
push 0x410088
push str._s_s
push 0x410188
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [esp + 0x168], ebx
je 0x401640
push 4
push ebx
push 0x410188
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x40167d
push 0x100
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
lea eax, [esp + 0x48]
push eax
call edi
lea ecx, [esp + 0x44]
push ecx
push 0x410188
push 0x40c2b0
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [0x410080]
push 0x81b
push edx
lea ecx, [esp + 0x20]
call fcn.00401030
mov edi, dword [esp + 0x18]
push ebp
call fcn.00401190
push edi
call fcn.0040210a
add esp, 8
lea ecx, [esp + 0x24]
call fcn.004012e0
xor eax, eax
jmp 0x401747
mov eax, dword [0x410080]
push 0x80d
push eax
lea ecx, [esp + 0x20]
call fcn.00401030
mov ecx, dword [0x410080]
push 0x80b
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401030
mov edx, dword [eax]
mov edi, dword [esp + 0x18]
push 0
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x14]
push eax
jmp 0x401736
mov ecx, dword [0x410080]
push 0x80d
push ecx
lea ecx, [esp + 0x20]
call fcn.00401030
mov edx, dword [0x410080]
push 0x80b
push edx
lea ecx, [esp + 0x1c]
call fcn.00401030
mov eax, dword [eax]
mov edi, dword [esp + 0x18]
push 0
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040210a
push edi
call fcn.0040210a
add esp, 8
or eax, 0xffffffff
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00402073
add esp, 0x140
ret