Function at 0x4191d0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x4bb358
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x4f4228
lea ecx, [ebp]
mov dword [ebp], 0
call fcn.004018b5
mov dword [ebp - 4], 0
mov ecx, 0x4f4238
call fcn.00402620
test al, al
jne 0x4193f2
mov ecx, 0x4f4238
call fcn.00401970
cmp esi, eax
je 0x4193dc
call fcn.00401970
mov dword [ebp - 0x18], eax
cmp dword [eax + 0x14], 8
jb 0x41925d
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ebx, dword [eax + 0x10]
mov ecx, esi
call fcn.00401970
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x14], eax
cmp ebx, eax
ja 0x4192a5
mov esi, edi
cmp eax, 8
jb 0x41927c
mov esi, dword [edi]
push ebx
push dword [ebp - 0x18]
mov dword [edi + 0x10], ebx
push esi
call fcn.00401a12
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x4193dc
mov ecx, esi
call fcn.00401b82
cmp ebx, eax
ja 0x4196e5
mov ecx, esi
call fcn.00401b82
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.00401970
mov esi, dword [ebp - 0x10]
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x20], ecx
cmp ecx, esi
ja 0x4192fb
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x4192fb
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x41930d
or ecx, 0xffffffff
jmp 0x419315
cmp ecx, 0x1000
jb 0x41933e
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4196ea
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x41934f
test ecx, ecx
je 0x41934d
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x41934f
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp - 0x18]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push esi
call fcn.00401a2b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
mov ecx, dword [ebp - 0x14]
add esp, 0x14
cmp ecx, 8
jb 0x4193bc
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4193ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4196ea
mov eax, edx
push ecx
push eax
call fcn.00495ce6
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [edi], eax
jmp 0x4193dc
push edi
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a5f
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004018d8
mov al, 1
jmp 0x4196c2
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.00497aa0
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4196b1
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.00497aa0
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x419577
test eax, eax
je 0x419577
add eax, eax
cmp eax, 0x412
jae 0x4196f4
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.00401a44
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.00401970
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, eax
ja 0x4194b0
mov esi, edi
cmp eax, 8
jb 0x4194a8
mov esi, dword [edi]
lea eax, [ebp + 4]
jmp 0x4195aa
mov ecx, esi
call fcn.00401b82
cmp ebx, eax
ja 0x4196ef
mov ecx, esi
call fcn.00401b82
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.00401970
mov esi, dword [ebp - 0x14]
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x20], ecx
cmp ecx, esi
ja 0x419506
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x419506
lea eax, [ecx + edx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x419518
or ecx, 0xffffffff
jmp 0x419520
cmp ecx, 0x1000
jb 0x419552
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4196ea
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
jmp 0x419684
test ecx, ecx
je 0x41956a
push ecx
call fcn.00495cb6
mov dword [ebp - 0x10], eax
add esp, 4
lea eax, [ebp + 4]
jmp 0x419684
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
jmp 0x419684
lea eax, [ebp + 0x418]
push eax
call fcn.00401a44
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.00401970
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, eax
ja 0x4195d1
mov esi, edi
cmp eax, 8
jb 0x4195a4
mov esi, dword [edi]
lea eax, [ebp + 0x418]
push ebx
push eax
push esi
mov dword [edi + 0x10], ebx
call fcn.00401a12
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x4193dc
mov ecx, esi
call fcn.00401b82
cmp ebx, eax
ja 0x4196f9
mov ecx, esi
call fcn.00401b82
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.00401970
mov esi, dword [ebp - 0x14]
mov ecx, ebx
or ecx, 7
mov dword [ebp - 0x20], ecx
cmp ecx, esi
ja 0x419627
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x419627
lea eax, [edx + ecx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x419639
or ecx, 0xffffffff
jmp 0x419641
cmp ecx, 0x1000
jb 0x41966a
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4196ea
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x41967b
test ecx, ecx
je 0x419679
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x41967b
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x418]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x10]
push eax
push esi
call fcn.00401a2b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
mov ecx, dword [ebp - 0x18]
jmp 0x41937c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004018d8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.00495ca5
lea esp, [ebp + 0x628]
pop ebp
ret
call fcn.00401b40
call fcn.00499d54
call fcn.00401b40
call fcn.00495e15
call fcn.00401b40
int3