Function at 0x1001e4a0
Capabilities:
Get common file path
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x10050a71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x100778dc]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x13c], eax
call fcn.10026ca0
mov ecx, dword [esp + 0x154]
mov ebp, dword [esp + 0x150]
mov bl, al
test bl, bl
sete al
mov byte [ecx], al
mov eax, dword [ebp + 4]
xor esi, esi
cmp eax, esi
je 0x1001e4f9
push eax
call fcn.1004119d
add esp, 4
test bl, bl
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
je 0x1001e6a2
mov edx, dword [str.SYSTEMCurrentControlSetControlSession_Manager]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.100264f0
cmp dword [esp + 0x20], esi
mov dword [esp + 0x148], esi
jne 0x1001e54e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
mov dword [esp + 0x148], 0xffffffff
call fcn.10026790
xor al, al
jmp 0x1001e8a5
mov ecx, dword [str.PendingFileRenameOperations]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.10026550
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x148], 1
jne 0x1001e588
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.10041868
add esp, 4
jmp 0x1001e533
mov edx, dword [esp + 0x10]
lea ebx, [ebp + 0x10]
push edx
mov ecx, ebx
call fcn.10005460
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov esi, eax
cmp byte [esi], 0
je 0x1001e67c
jmp 0x1001e5c0
push 4
push str.___
mov edi, esi
push esi
sub edi, eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNA]
test eax, eax
jne 0x1001e5df
lea ecx, [esi + 4]
mov dword [esp + 0x1c], ecx
jmp 0x1001e5e3
mov dword [esp + 0x1c], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 4
lea esi, [esi + eax + 1]
push str.___
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNA]
test eax, eax
jne 0x1001e609
lea edx, [esi + 4]
mov dword [esp + 0x14], edx
jmp 0x1001e630
push 5
push 0x10054b64
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNA]
test eax, eax
jne 0x1001e624
lea eax, [esi + 5]
mov dword [esp + 0x14], eax
jmp 0x1001e630
mov cl, byte [esi]
neg cl
sbb ecx, ecx
and ecx, esi
mov dword [esp + 0x14], ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x1c]
lea esi, [esi + eax + 1]
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push edx
mov ecx, ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
call fcn.1001e430
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
mov ecx, esi
sub ecx, eax
cmp ecx, edx
jg 0x1001e67c
cmp byte [esi], 0
jne 0x1001e5c0
mov edx, dword [esp + 0x24]
push edx
call fcn.10041868
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x148], 0xffffffff
call fcn.10026790
jmp 0x1001e8a3
push 0x104
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [str.WinInit.ini]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.10011f60
mov eax, dword [esp + 0x14]
or edi, 0xffffffff
cmp eax, edi
mov dword [esp + 0x148], 2
je 0x1001e7ad
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [ebp + 0x10]
push eax
lea esi, [ebx + 1]
call fcn.10041868
add esp, 4
test esi, esi
je 0x1001e716
push esi
call fcn.1003fb26
add esp, 4
jmp 0x1001e718
xor eax, eax
test eax, eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], esi
lea ecx, [esp + 0x14]
je 0x1001e735
push ebx
push eax
call fcn.10011ff0
cmp eax, ebx
lea ecx, [esp + 0x14]
je 0x1001e748
mov dword [esp + 0x148], edi
call fcn.10012050
xor al, al
jmp 0x1001e8a5
call fcn.10012050
mov al, byte [ebp + 0x20]
test al, al
je 0x1001e77d
lea esi, [ebp + 0x18]
push ebx
mov ecx, esi
call fcn.10005460
mov eax, dword [esi]
test eax, eax
je 0x1001e7ad
mov esi, dword [ebp + 0x10]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
mov eax, dword [ebp + 0x10]
mov byte [eax + ebx], 0
mov eax, dword [ebp + 0x10]
push str._rename_
add ebx, eax
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x1001e7ad
push 0x10054b54
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x1001e7c4
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], edi
call fcn.10012050
xor al, al
jmp 0x1001e8a5
lea esi, [eax + 2]
cmp esi, ebx
jae 0x1001e893
jmp 0x1001e7e0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x150]
lea esp, [esp]
cmp byte [esi], 0x5b
je 0x1001e893
push 0x10054b54
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x1001e802
lea ecx, [eax + 2]
mov dword [esp + 0x10], ecx
jmp 0x1001e808
mov dword [esp + 0x10], ebx
mov eax, ebx
mov ebx, dword [esp + 0x10]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
push 0x3d
mov ebp, esi
push esi
sub ebp, eax
sub ebx, eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov edi, eax
test edi, edi
je 0x1001e880
lea eax, [edi + 1]
push 0x10054b50
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x10054b50
push esi
mov byte [edi], 0
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x10054b4c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1001e85b
xor esi, esi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x150]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
call fcn.1001e430
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
or edi, 0xffffffff
cmp esi, eax
jb 0x1001e7d1
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], edi
call fcn.10012050
mov al, 1
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x130]
pop ebx
call fcn.1004189e
add esp, 0x13c
ret