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

Disassembly:
push 0xffffffffffffffff
push 0x6014b272
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbdc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x330]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x334], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebp, eax
test ebp, ebp
je 0x601389da
mov eax, dword [esp + 0x340]
dec eax
je 0x60138848
dec eax
jne 0x601389d0
lea ecx, [esp + 0x5cc]
call fcn.601264c0
lea ecx, [esp + 0x5cc]
mov dword [esp + 0xbf4], 1
call fcn.601268e0
test eax, eax
mov edi, dword [esp + 0xc00]
mov esi, dword [esp + 0xbfc]
jne 0x60138800
push 0x601264d0
lea ecx, [esp + 0x5d0]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.6011af90
add esp, 0xc
test edi, edi
mov byte [esp + 0xbf4], 2
jne 0x60138753
lea eax, [esp + 0x230]
mov dword [esp + 0x22c], eax
call dword [0x6015b0d8]
push eax
push esi
lea ecx, [esp + 0x234]
call fcn.60113a00
mov ecx, dword [esp + 0x22c]
push ecx
lea ecx, [esp + 0x5d0]
mov byte [esp + 0xbf8], 3
call fcn.60126500
test eax, eax
mov eax, dword [esp + 0x22c]
lea edx, [esp + 0x230]
setne bl
cmp eax, edx
je 0x601387ec
push eax
call dword [sym.imp.MSVCR71.dll_free]
jmp 0x601387e9
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
call dword [0x6015b0d8]
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.60113a00
lea ecx, [esp + 0x12c]
mov byte [esp + 0xbf4], 4
mov dword [esp + 0x128], ecx
call dword [0x6015b0d8]
push eax
push edi
lea ecx, [esp + 0x130]
call fcn.60113a00
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x128]
push edx
push eax
lea ecx, [esp + 0x5d4]
mov byte [esp + 0xbfc], 5
call fcn.601265a0
mov ebp, dword [sym.imp.MSVCR71.dll_free]
test eax, eax
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x12c]
setne bl
cmp eax, ecx
je 0x601387da
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x601387ec
push eax
call ebp
add esp, 4
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xbf4], 1
call dword [esp + 0x18]
test bl, bl
je 0x60138828
lea ecx, [esp + 0x5cc]
mov dword [esp + 0xbf4], 0xffffffff
call fcn.601268c0
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebp, eax
jmp 0x601389d0
lea ecx, [esp + 0x5cc]
mov dword [esp + 0xbf4], 0xffffffff
call fcn.601268c0
mov eax, dword [esp + 0x10]
jmp 0x601389f6
mov esi, dword [esp + 0xbfc]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
lea eax, [esp + 0x9e8]
push eax
push esi
call edi
test eax, eax
je 0x601389da
mov ebx, dword [esp + 0xc00]
test ebx, ebx
je 0x60138890
push 0x104
lea ecx, [esp + 0xaec]
push ecx
push esi
call edi
test eax, eax
je 0x601389da
mov eax, dword [0x60150364]
mov edx, dword [str.WinInit.ini]
mov ecx, dword [0x60150368]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dl, byte [0x6015036c]
push 0x104
lea eax, [esp + 0x3c8]
push eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x28], dl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x14]
lea edx, [esp + eax + 0x3c4]
mov eax, ecx
sub edx, eax
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x601388e0
lea ecx, [esp + 0x3c4]
push ecx
push 0x104
lea edx, [esp + 0x4d0]
push edx
call fcn.60126970
push str.rename
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4d0]
call fcn.60138070
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
push 0
sete dl
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0xbfc], 0
movzx esi, dl
call fcn.60138280
lea eax, [esp + 0x9e4]
push eax
push 0
lea ecx, [esp + 0x18]
call fcn.60138300
push 0x60150354
push 0
lea ecx, [esp + 0x18]
call fcn.60138300
test ebx, ebx
je 0x60138972
lea ecx, [esp + 0xae8]
push ecx
jmp 0x60138977
push 0x6014eaf8
lea ecx, [esp + 0x14]
push 0
call fcn.60138300
test esi, esi
je 0x60138991
push 0
lea ecx, [esp + 0x14]
call fcn.6010a1e0
mov esi, dword [esp + 0x10]
push esi
push str.rename
lea ecx, [esp + 0x4d0]
call fcn.601370a0
mov dword [esp + 0x10], eax
lea eax, [esi - 0x10]
mov dword [esp + 0xbf4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x601389d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
je 0x601389da
mov eax, dword [esp + 0x10]
jmp 0x601389f6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x601389ea
call esi
jmp 0x601389f6
call esi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esp + 0xbec]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbe8
ret