Function at 0x1001eab0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10050a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x100778dc]
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
push edi
mov dword [esp + 0x128], eax
mov esi, ecx
mov ecx, dword [esp + 0x13c]
lea eax, [esp + 0x13]
push eax
mov edi, edx
push esi
push ecx
mov ebx, ebp
mov ecx, edi
call fcn.1001e8d0
add esp, 0xc
test al, al
je 0x1001ed28
mov cl, byte [esp + 0x13]
test cl, cl
mov dword [esp + 0x14], edi
jne 0x1001eb18
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x144]
test eax, eax
je 0x1001eb25
mov byte [eax], cl
mov eax, dword [ebp + 0x18]
test eax, eax
lea esi, [ebp + 0x18]
je 0x1001eb35
mov dword [esp + 0x20], esi
jmp 0x1001eb3e
lea edx, [ebp + 0x10]
mov dword [esp + 0x20], edx
mov esi, edx
mov eax, dword [esp + 0x140]
mov ebp, dword [ebp + 4]
cmp ebp, dword [eax + 8]
mov edi, dword [esi]
mov ebx, edi
mov dword [esp + 0x18], 0
je 0x1001ed39
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1001eba7
mov al, byte [esp + 0x13]
test al, al
je 0x1001ebec
mov ecx, dword [ebp]
push 0x104
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
je 0x1001ebec
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1001ebec
mov eax, dword [ebp + 4]
test eax, eax
je 0x1001ebb9
mov al, byte [esp + 0x13c]
test al, al
je 0x1001ebec
mov eax, dword [esi]
mov esi, dword [ebp + 8]
sub esi, ebx
add esi, eax
cmp ebx, edi
je 0x1001ebd1
push esi
push ebx
push edi
call fcn.10040e60
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
sub ecx, edx
add ecx, esi
add edi, esi
mov esi, dword [esp + 0x20]
add ebx, ecx
inc eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x140]
mov eax, dword [edx + 8]
add ebp, 0x10
cmp ebp, eax
jne 0x1001eb60
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001ed39
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ebx
add eax, ecx
mov ebp, eax
push ebp
push ebx
push edi
call fcn.10040e60
mov ecx, dword [esi]
mov al, byte [esp + 0x1f]
add edi, ebp
add esp, 0xc
sub edi, ecx
test al, al
je 0x1001ecae
mov eax, dword [str.SYSTEMCurrentControlSetControlSession_Manager]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x20]
call fcn.100264f0
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x134], 0
je 0x1001ec8f
mov esi, dword [esi]
mov ecx, dword [str.PendingFileRenameOperations]
push edi
push 1
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.10026670
test al, al
je 0x1001ec8f
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.10026790
mov al, 1
jmp 0x1001ed3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.10026790
jmp 0x1001ed39
push 0x104
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [str.WinInit.ini]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 2
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.10011f60
mov eax, dword [esp + 0x18]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x134], 1
lea ecx, [esp + 0x18]
jne 0x1001ed07
mov dword [esp + 0x134], ebx
call fcn.10012050
jmp 0x1001ed39
mov esi, dword [esi]
push edi
push esi
call fcn.10012020
cmp eax, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], ebx
jne 0x1001ed00
call fcn.10012050
mov al, 1
jmp 0x1001ed3b
mov eax, dword [esp + 0x144]
test eax, eax
je 0x1001ed39
mov cl, byte [esp + 0x13]
mov byte [eax], cl
xor al, al
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
pop ebx
call fcn.1004189e
add esp, 0x128
ret