Function at 0x4181f0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x44f138
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x46600c]
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 edi, ecx
mov eax, dword [0x469f64]
mov dword [ebp], 0
mov dword [ebp], 0x469f64
test eax, eax
je 0x418249
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [0x4668a0]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4183ba
cmp edi, 0x466890
je 0x41839c
cmp dword [0x4668a4], 8
mov edx, 0x466890
mov ecx, dword [edi + 0x14]
cmovae edx, dword [0x466890]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
cmp eax, ecx
ja 0x4182b1
mov ebx, edi
cmp ecx, 8
jb 0x418295
mov ebx, dword [edi]
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ebx
call fcn.0043c190
add esp, 0xc
xor eax, eax
mov word [ebx + esi], ax
jmp 0x41839c
cmp eax, 0x7ffffffe
ja 0x418663
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4182d0
mov esi, 0x7ffffffe
jmp 0x4182ee
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4182e6
mov esi, 0x7ffffffe
jmp 0x4182ee
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x418300
or ecx, 0xffffffff
jmp 0x418308
cmp ecx, 0x1000
jb 0x41832f
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b1a7
add esp, 4
test eax, eax
je 0x418668
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x418342
test ecx, ecx
je 0x418340
push ecx
call fcn.0043b1a7
add esp, 4
mov ebx, eax
jmp 0x418342
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x10]
push ebx
call fcn.0043c710
mov ecx, dword [ebp - 0x14]
xor eax, eax
add esp, 0xc
mov word [ebx + esi], ax
cmp ecx, 8
jb 0x41839a
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x418390
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418668
mov eax, edx
push ecx
push eax
call fcn.0043b1d7
add esp, 8
mov dword [edi], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x469f64]
test eax, eax
je 0x4183b3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x418639
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.0043cc90
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x418620
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.0043cc90
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 0x418526
test eax, eax
je 0x418526
add eax, eax
cmp eax, 0x412
jae 0x418672
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.0043ef4e
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
ja 0x418476
mov ebx, edi
cmp ecx, 8
jb 0x418468
mov ebx, dword [edi]
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
lea eax, [ebp + 4]
jmp 0x418557
cmp eax, 0x7ffffffe
ja 0x41866d
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x418495
mov esi, 0x7ffffffe
jmp 0x4184b3
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4184ab
mov esi, 0x7ffffffe
jmp 0x4184b3
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4184c5
or ecx, 0xffffffff
jmp 0x4184cd
cmp ecx, 0x1000
jb 0x4184f4
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b1a7
add esp, 4
test eax, eax
je 0x418668
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x418507
test ecx, ecx
je 0x418505
push ecx
call fcn.0043b1a7
add esp, 4
mov ebx, eax
jmp 0x418507
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
push esi
lea eax, [ebp + 4]
push eax
push ebx
call fcn.0043c710
mov ecx, dword [ebp - 0x10]
jmp 0x41835b
lea eax, [ebp + 0x418]
push eax
call fcn.0043ef4e
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
ja 0x41856d
mov ebx, edi
cmp ecx, 8
jb 0x41854b
mov ebx, dword [edi]
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
lea eax, [ebp + 0x418]
push esi
push eax
push ebx
call fcn.0043c190
add esp, 0xc
xor eax, eax
mov word [ebx + esi], ax
jmp 0x41839c
cmp eax, 0x7ffffffe
ja 0x418677
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x41858c
mov esi, 0x7ffffffe
jmp 0x4185aa
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4185a2
mov esi, 0x7ffffffe
jmp 0x4185aa
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4185bc
or ecx, 0xffffffff
jmp 0x4185c4
cmp ecx, 0x1000
jb 0x4185eb
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b1a7
add esp, 4
test eax, eax
je 0x418668
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4185fe
test ecx, ecx
je 0x4185fc
push ecx
call fcn.0043b1a7
add esp, 4
mov ebx, eax
jmp 0x4185fe
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
push esi
lea eax, [ebp + 0x418]
push eax
push ebx
call fcn.0043c710
mov ecx, dword [ebp - 0x10]
jmp 0x41835b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x469f64]
test eax, eax
je 0x418637
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov dword [ebp], 0
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.0043af96
lea esp, [ebp + 0x628]
pop ebp
ret
call fcn.00402330
call fcn.0043f174
call fcn.00402330
call fcn.0043b0cd
call fcn.00402330
int3