Function at 0x1001a148
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [ebp + 0xe], 1
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
jne 0x1001a168
test byte [ebp + 0xc], 0x40
je 0x1001a168
and dword [ebp - 0x10], 0
jmp 0x1001a16f
mov dword [ebp - 0x10], 1
and dword [ebp + 0xc], 0x40
push 0x41c
lea ecx, [ebp - 4]
call fcn.10046141
mov eax, dword [ebp - 4]
and word [eax], 0
mov esi, eax
push esi
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push str.__OldDir
mov ecx, edi
call fcn.100457c2
mov esi, dword [ebp + 8]
push esi
push str.CurFile.real
mov ecx, edi
call fcn.100457c2
push esi
lea ecx, [ebp - 0xc]
call fcn.100501eb
test esi, esi
je 0x1001a232
push esi
push str.CurFile.Raw
mov ecx, edi
call fcn.100457c2
cmp word [esi], 0x23
jne 0x1001a1e5
xor eax, eax
mov ax, word [esi + 2]
push eax
call fcn.10045b88
add esp, 4
test al, al
jne 0x1001a232
push esi
push str.101
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1001a1fc
mov esi, 0x100ca568
jmp 0x1001a232
cmp word [esi], 0x2a
jne 0x1001a26c
lea eax, [esi + 2]
mov cx, word [eax]
cmp cx, 0x2a
je 0x1001a229
cmp cx, 0x6d
jne 0x1001a26c
cmp word [esi + 4], 0x61
jne 0x1001a26c
cmp word [esi + 6], 0x70
jne 0x1001a26c
cmp word [esi + 8], 0x3a
jne 0x1001a26c
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
je 0x1001a26c
push 0x104
push dword [ebp - 4]
push dword [0x100e2fc0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 4]
mov ecx, edi
push str.CurFile.File
call fcn.100457c2
test esi, esi
je 0x1001a262
push esi
lea ecx, [ebp - 4]
call fcn.1004618f
mov ebx, dword [ebp - 4]
mov esi, ebx
jmp 0x1001a309
lea ecx, [ebp + 8]
call fcn.1000f804
mov ebx, dword [ebp + 8]
mov cx, word [ebx]
cmp cx, 0x2a
mov eax, ebx
jne 0x1001a285
lea eax, [ebx + 2]
xor edx, edx
cmp cx, 0x22
sete dl
xor ecx, ecx
mov esi, eax
cmp edx, ecx
mov dword [ebp + 8], edx
je 0x1001a2b9
inc eax
inc eax
cmp word [eax], cx
mov esi, eax
je 0x1001a2af
cmp word [esi], 0x22
je 0x1001a2af
inc esi
inc esi
cmp word [esi], cx
jne 0x1001a2a2
cmp word [esi], cx
je 0x1001a2b9
mov word [esi], cx
inc esi
inc esi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.10013659
pop ecx
pop ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edi, str.CurFile.File
push edi
call fcn.100457c2
cmp dword [ebp + 8], 0
je 0x1001a2eb
cmp word [esi], 0
je 0x1001a2eb
push esi
lea ecx, [ebp - 0xc]
call fcn.1004618f
mov ax, word [ebx]
cmp ax, 0x2a
mov esi, dword [ebp - 0xc]
je 0x1001a2ff
cmp ax, 0x23
je 0x1001a2ff
mov ebx, esi
mov ecx, dword [ebp - 8]
push ebx
push edi
call fcn.100457c2
mov ax, word [esi]
cmp ax, 0x61
jb 0x1001a31f
cmp ax, 0x7a
ja 0x1001a31f
and ax, 0xffdf
mov word [esi], ax
mov ecx, dword [ebp - 8]
push ebx
push str.CurFile
call fcn.100457c2
cmp dword [ebp - 0x10], 0
je 0x1001a340
push ebx
push 0x100ca538
call fcn.100449cc
pop ecx
pop ecx
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1001a357
mov word [edi + 2], bx
cmp dword [ebp + 0xc], ebx
jne 0x1001a363
push esi
call fcn.10012162
pop ecx
cmp edi, ebx
je 0x1001a36a
mov word [edi], bx
mov ecx, dword [ebp - 8]
push esi
push 0x100ca520
call fcn.100457c2
cmp dword [ebp - 0x10], ebx
je 0x1001a38a
push esi
push 0x100ca524
call fcn.100449cc
pop ecx
pop ecx
cmp dword [ebp + 0xc], ebx
jne 0x1001a394
call fcn.10014ff4
mov ecx, dword [ebp - 8]
push esi
push str.CurDrv
mov word [esi + 4], bx
call fcn.100457c2
cmp dword [ebp - 0x10], ebx
je 0x1001a3b8
push esi
push 0x100ca510
call fcn.100449cc
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.1003f96c
lea ecx, [ebp - 4]
call fcn.1003f96c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8