Function at 0x4197ba
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 0x4197da
test byte [ebp + 0xc], 0x40
je 0x4197da
and dword [ebp - 0x10], 0
jmp 0x4197e1
mov dword [ebp - 0x10], 1
and dword [ebp + 0xc], 0x40
push 0x41c
lea ecx, [ebp - 4]
call fcn.00443f79
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 0x4c043c
mov ecx, edi
call fcn.00443666
mov esi, dword [ebp + 8]
push esi
push 0x4c041c
mov ecx, edi
call fcn.00443666
push esi
lea ecx, [ebp - 0xc]
call fcn.0044cd74
test esi, esi
je 0x4198a4
push esi
push 0x4c0400
mov ecx, edi
call fcn.00443666
cmp word [esi], 0x23
jne 0x419857
xor eax, eax
mov ax, word [esi + 2]
push eax
call fcn.004439f7
add esp, 4
test al, al
jne 0x4198a4
push esi
push 0x4c03f0
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x41986e
mov esi, 0x4c03e4
jmp 0x4198a4
cmp word [esi], 0x2a
jne 0x4198de
lea eax, [esi + 2]
mov cx, word [eax]
cmp cx, 0x2a
je 0x41989b
cmp cx, 0x6d
jne 0x4198de
cmp word [esi + 4], 0x61
jne 0x4198de
cmp word [esi + 6], 0x70
jne 0x4198de
cmp word [esi + 8], 0x3a
jne 0x4198de
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
je 0x4198de
push 0x104
push dword [ebp - 4]
push dword [0x4d7fa0]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push dword [ebp - 4]
mov ecx, edi
push 0x4c03c4
call fcn.00443666
test esi, esi
je 0x4198d4
push esi
lea ecx, [ebp - 4]
call fcn.00443fc7
mov ebx, dword [ebp - 4]
mov esi, ebx
jmp 0x41997b
lea ecx, [ebp + 8]
call fcn.0040f369
mov ebx, dword [ebp + 8]
mov cx, word [ebx]
cmp cx, 0x2a
mov eax, ebx
jne 0x4198f7
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 0x41992b
inc eax
inc eax
cmp word [eax], cx
mov esi, eax
je 0x419921
cmp word [esi], 0x22
je 0x419921
inc esi
inc esi
cmp word [esi], cx
jne 0x419914
cmp word [esi], cx
je 0x41992b
mov word [esi], cx
inc esi
inc esi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00412e7f
pop ecx
pop ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edi, 0x4c03c4
push edi
call fcn.00443666
cmp dword [ebp + 8], 0
je 0x41995d
cmp word [esi], 0
je 0x41995d
push esi
lea ecx, [ebp - 0xc]
call fcn.00443fc7
mov ax, word [ebx]
cmp ax, 0x2a
mov esi, dword [ebp - 0xc]
je 0x419971
cmp ax, 0x23
je 0x419971
mov ebx, esi
mov ecx, dword [ebp - 8]
push ebx
push edi
call fcn.00443666
mov ax, word [esi]
cmp ax, 0x61
jb 0x419991
cmp ax, 0x7a
ja 0x419991
and ax, 0xffdf
mov word [esi], ax
mov ecx, dword [ebp - 8]
push ebx
push 0x4c03b0
call fcn.00443666
cmp dword [ebp - 0x10], 0
je 0x4199b2
push ebx
push 0x4c03b4
call fcn.0044269c
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 0x4199c9
mov word [edi + 2], bx
cmp dword [ebp + 0xc], ebx
jne 0x4199d5
push esi
call fcn.004119ff
pop ecx
cmp edi, ebx
je 0x4199dc
mov word [edi], bx
mov ecx, dword [ebp - 8]
push esi
push 0x4c039c
call fcn.00443666
cmp dword [ebp - 0x10], ebx
je 0x4199fc
push esi
push 0x4c03a0
call fcn.0044269c
pop ecx
pop ecx
cmp dword [ebp + 0xc], ebx
jne 0x419a06
call fcn.004147e0
mov ecx, dword [ebp - 8]
push esi
push 0x4c0388
mov word [esi + 4], bx
call fcn.00443666
cmp dword [ebp - 0x10], ebx
je 0x419a2a
push esi
push 0x4c038c
call fcn.0044269c
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.0043db4f
lea ecx, [ebp - 4]
call fcn.0043db4f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8