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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468ba5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfa8
mov dword [ebp - 0xf90], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x44656d
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x104
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov ecx, dword [ebp - 0xf90]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2d4], edx
mov eax, dword [ebp - 0x2d4]
push eax
call fcn.00462f60
lea ecx, [ebp - 0x40]
call fcn.00403078
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2d0], ecx
call dword [0x47e5c8]
push eax
lea edx, [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x2d0]
call fcn.00401476
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2d8]
mov edx, dword [ecx]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0xf90]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2e0], ecx
push 0x104
lea ecx, [ebp - 0x40]
call fcn.00403123
mov dword [ebp - 0x2e4], eax
mov edx, dword [ebp - 0x2dc]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.0040cacd
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2e8], edx
lea eax, [ebp - 0x2cc]
cmp dword [ebp - 0x2e8], eax
je 0x445f92
mov ecx, dword [ebp - 0x2e8]
push ecx
call fcn.00448193
add esp, 4
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x38c], 0x94
lea edx, [ebp - 0x38c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0x2f4], eax
cmp dword [ebp - 0x2f4], 0
je 0x4464b0
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0xf94], eax
cmp dword [ebp - 0xf94], 1
je 0x446002
cmp dword [ebp - 0xf94], 2
je 0x446210
jmp 0x4464b0
push 0x104
lea ecx, [ebp - 0x7b8]
push ecx
mov edx, dword [ebp - 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x7c0], eax
cmp dword [ebp - 0x7c0], 0
jne 0x446039
mov dword [ebp - 0x2f4], 0
jmp 0x4464b0
cmp dword [ebp - 0x2ec], 0
je 0x446079
push 0x104
lea eax, [ebp - 0x4a8]
push eax
mov ecx, dword [ebp - 0x2f0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x7c0], eax
cmp dword [ebp - 0x7c0], 0
jne 0x446079
mov dword [ebp - 0x2f4], 0
jmp 0x4464b0
mov edx, dword [str.WinInit.ini]
mov dword [ebp - 0x3a0], edx
mov eax, dword [0x46d594]
mov dword [ebp - 0x39c], eax
mov ecx, dword [0x46d598]
mov dword [ebp - 0x398], ecx
mov dl, byte [0x46d59c]
mov byte [ebp - 0x394], dl
push 0x104
lea eax, [ebp - 0x6b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x3a4], eax
lea ecx, [ebp - 0x3a0]
push ecx
mov edx, dword [ebp - 0x3a4]
lea eax, [ebp + edx - 0x6b4]
push eax
call fcn.0044ba20
add esp, 8
lea ecx, [ebp - 0x6b4]
push ecx
push 0x104
lea edx, [ebp - 0x5ac]
push edx
call fcn.00410e20
mov dword [ebp - 0xefc], eax
mov dword [ebp - 0x390], str.rename
mov eax, dword [ebp - 0x390]
push eax
lea ecx, [ebp - 0x5b0]
push ecx
lea ecx, [ebp - 0x5ac]
call fcn.0042e920
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5b0]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0xf00], eax
xor ecx, ecx
cmp dword [ebp - 0xf00], 0
sete cl
movzx edx, cl
mov dword [ebp - 0x7bc], edx
push 0
push 0
lea ecx, [ebp - 0x5b0]
call fcn.0042f500
lea eax, [ebp - 0x7b8]
push eax
push 0
lea ecx, [ebp - 0x5b0]
call fcn.0042f6b0
push 0x46d584
push 0
lea ecx, [ebp - 0x5b0]
call fcn.0042f6b0
cmp dword [ebp - 0x2ec], 0
je 0x44619a
lea ecx, [ebp - 0x4a8]
push ecx
push 0
lea ecx, [ebp - 0x5b0]
call fcn.0042f6b0
jmp 0x4461ac
push 0x46d580
push 0
lea ecx, [ebp - 0x5b0]
call fcn.0042f6b0
cmp dword [ebp - 0x7bc], 0
je 0x4461c2
push 0
lea ecx, [ebp - 0x5b0]
call fcn.0040e710
mov edx, dword [ebp - 0x5b0]
mov dword [ebp - 0xf04], edx
mov eax, dword [ebp - 0xf04]
push eax
mov ecx, dword [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x5ac]
call fcn.0042ea00
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x5b0]
sub edx, 0x10
mov dword [ebp - 0xf08], edx
mov ecx, dword [ebp - 0xf08]
call fcn.00401741
jmp 0x4464b0
mov dword [ebp - 0x2f4], 0
lea ecx, [ebp - 0xbe0]
call fcn.0045dd10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xbe0]
call fcn.0045e130
test eax, eax
je 0x44624c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbe0]
call fcn.0045e110
jmp 0x44648b
push 0x45dd20
lea eax, [ebp - 0xbe0]
push eax
lea ecx, [ebp - 0x7c8]
push ecx
call fcn.00430ad0
add esp, 0xc
mov byte [ebp - 4], 4
lea edx, [ebp - 0x7c8]
mov dword [ebp - 0xbe4], edx
cmp dword [ebp - 0x2ec], 0
jne 0x446345
lea eax, [ebp - 0xce8]
mov dword [ebp - 0xcec], eax
call dword [0x47e5c8]
push eax
mov ecx, dword [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0xcec]
call fcn.0040ccbb
lea edx, [ebp - 0xcec]
mov dword [ebp - 0xf0c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xf0c]
mov ecx, dword [eax]
mov dword [ebp - 0xf10], ecx
mov edx, dword [ebp - 0xf10]
push edx
lea ecx, [ebp - 0xbe0]
call fcn.0045dd50
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xbe5], al
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xcec]
mov dword [ebp - 0xf14], eax
lea ecx, [ebp - 0xce8]
cmp dword [ebp - 0xf14], ecx
je 0x446312
mov edx, dword [ebp - 0xf14]
push edx
call fcn.00448193
add esp, 4
movzx eax, byte [ebp - 0xbe5]
test eax, eax
je 0x446340
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c8]
call fcn.0042ffa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbe0]
call fcn.0045e110
jmp 0x44648b
jmp 0x44645b
mov ecx, dword [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0xdf4]
call fcn.0040d328
mov dword [ebp - 0xf98], eax
mov edx, dword [ebp - 0xf98]
mov dword [ebp - 0xf18], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0xef8]
call fcn.0040d328
mov dword [ebp - 0xf9c], eax
mov ecx, dword [ebp - 0xf9c]
mov dword [ebp - 0xf20], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xf18]
mov eax, dword [edx]
mov dword [ebp - 0xf1c], eax
mov ecx, dword [ebp - 0xf20]
mov edx, dword [ecx]
mov dword [ebp - 0xf24], edx
mov eax, dword [ebp - 0xf1c]
push eax
mov ecx, dword [ebp - 0xf24]
push ecx
lea ecx, [ebp - 0xbe0]
call fcn.0045ddf0
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xced], al
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xef8]
mov dword [ebp - 0xf28], edx
lea eax, [ebp - 0xef4]
cmp dword [ebp - 0xf28], eax
je 0x446403
mov ecx, dword [ebp - 0xf28]
push ecx
call fcn.00448193
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xdf4]
mov dword [ebp - 0xf2c], edx
lea eax, [ebp - 0xdf0]
cmp dword [ebp - 0xf2c], eax
je 0x446430
mov ecx, dword [ebp - 0xf2c]
push ecx
call fcn.00448193
add esp, 4
movzx edx, byte [ebp - 0xced]
test edx, edx
je 0x44645b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c8]
call fcn.0042ffa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbe0]
call fcn.0045e110
jmp 0x44648b
mov dword [ebp - 0x2f4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c8]
call fcn.0042ffa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbe0]
call fcn.0045e110
xor eax, eax
jne 0x44621a
cmp dword [ebp - 0x2f4], 0
jne 0x4464b0
push 4
mov ecx, dword [ebp - 0x2ec]
push ecx
mov edx, dword [ebp - 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x2f4], eax
cmp dword [ebp - 0x2f4], 0
je 0x4464c7
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0xfa0], eax
jmp 0x446506
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4464df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xfa4], eax
jmp 0x4464fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0xfa4], eax
mov ecx, dword [ebp - 0xfa4]
mov dword [ebp - 0xfa0], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0xf38], edx
mov eax, dword [ebp + 8]
add eax, 0x2c
mov dword [ebp - 0xf34], eax
cmp dword [ebp - 0xf38], 0
jne 0x446530
mov dword [ebp - 0xf30], 0
jmp 0x446545
mov ecx, dword [ebp - 0xf38]
push ecx
call fcn.00449260
add esp, 4
mov dword [ebp - 0xf30], eax
mov edx, dword [ebp - 0xf30]
push edx
mov eax, dword [ebp - 0xf38]
push eax
mov ecx, dword [ebp - 0xf34]
call fcn.00403cc5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402073
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 8
mov ecx, dword [0x47e5c4]
mov dword [ebp - 0xf40], ecx
push 0x47fe44
lea ecx, [ebp - 0x1c]
call fcn.0040204e
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xf40]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404315
movzx eax, al
test eax, eax
jne 0x4465bd
mov ecx, dword [ebp - 0xf40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00446820
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xf44]
mov dword [ebp - 0xfa8], edx
mov eax, dword [ebp - 0xf90]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xfa8], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xf48], edx
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0xf48]
push ecx
mov edx, dword [ebp - 0xfa8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xfa8]
mov edx, dword [eax + 0x30]
call edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x446655
mov eax, dword [ebp - 0xf4c]
mov dword [ebp - 0xfac], eax
mov ecx, dword [ebp - 0xf90]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xfac], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xf50], eax
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0xf50]
push edx
mov eax, dword [ebp - 0xfac]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xfac]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x44667b
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1c]
call fcn.00402073
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00447680
jmp 0x44677e
push 8
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00449160
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x44669b
push 0x80004003
call fcn.00447f30
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xfb0], edx
push 0
push 2
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0xfb0]
push edx
mov eax, dword [ebp - 0xfb0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xf60], eax
mov dword [ebp - 0x18], 0x46dbc8
mov dword [ebp - 0x18], 0x46dbb8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xf64], ecx
mov edx, dword [ebp - 0xf64]
mov eax, dword [ebp - 0xf60]
mov dword [edx], eax
mov ecx, dword [ebp - 0xf64]
cmp dword [ecx], 0
je 0x446715
mov edx, dword [ebp - 0xf64]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xf64]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00445d10
add esp, 8
mov ecx, dword [ebp - 0xf68]
mov dword [ebp - 0xfb4], ecx
mov edx, dword [ebp - 0xf90]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xfb4], eax
mov ecx, dword [ebp - 0xfb4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xfb4]
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
call fcn.00443d50
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1c]
call fcn.00402073
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00447680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4