Function at 0x4184e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x44f768
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 [0x469f6c]
mov dword [ebp], 0
mov dword [ebp], 0x469f6c
test eax, eax
je 0x418539
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 0x4186aa
cmp edi, 0x466890
je 0x41868c
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 0x4185a1
mov ebx, edi
cmp ecx, 8
jb 0x418585
mov ebx, dword [edi]
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ebx
call fcn.0043c760
add esp, 0xc
xor eax, eax
mov word [ebx + esi], ax
jmp 0x41868c
cmp eax, 0x7ffffffe
ja 0x418953
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4185c0
mov esi, 0x7ffffffe
jmp 0x4185de
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4185d6
mov esi, 0x7ffffffe
jmp 0x4185de
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4185f0
or ecx, 0xffffffff
jmp 0x4185f8
cmp ecx, 0x1000
jb 0x41861f
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b783
add esp, 4
test eax, eax
je 0x418958
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x418632
test ecx, ecx
je 0x418630
push ecx
call fcn.0043b783
add esp, 4
mov ebx, eax
jmp 0x418632
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.0043cce0
mov ecx, dword [ebp - 0x14]
xor eax, eax
add esp, 0xc
mov word [ebx + esi], ax
cmp ecx, 8
jb 0x41868a
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x418680
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418958
mov eax, edx
push ecx
push eax
call fcn.0043b7b3
add esp, 8
mov dword [edi], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x469f6c]
test eax, eax
je 0x4186a3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x418929
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.0043d260
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x418910
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.0043d260
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 0x418816
test eax, eax
je 0x418816
add eax, eax
cmp eax, 0x412
jae 0x418962
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.0043f51e
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
ja 0x418766
mov ebx, edi
cmp ecx, 8
jb 0x418758
mov ebx, dword [edi]
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
lea eax, [ebp + 4]
jmp 0x418847
cmp eax, 0x7ffffffe
ja 0x41895d
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x418785
mov esi, 0x7ffffffe
jmp 0x4187a3
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x41879b
mov esi, 0x7ffffffe
jmp 0x4187a3
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4187b5
or ecx, 0xffffffff
jmp 0x4187bd
cmp ecx, 0x1000
jb 0x4187e4
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b783
add esp, 4
test eax, eax
je 0x418958
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4187f7
test ecx, ecx
je 0x4187f5
push ecx
call fcn.0043b783
add esp, 4
mov ebx, eax
jmp 0x4187f7
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.0043cce0
mov ecx, dword [ebp - 0x10]
jmp 0x41864b
lea eax, [ebp + 0x418]
push eax
call fcn.0043f51e
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
ja 0x41885d
mov ebx, edi
cmp ecx, 8
jb 0x41883b
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.0043c760
add esp, 0xc
xor eax, eax
mov word [ebx + esi], ax
jmp 0x41868c
cmp eax, 0x7ffffffe
ja 0x418967
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x41887c
mov esi, 0x7ffffffe
jmp 0x41889a
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x418892
mov esi, 0x7ffffffe
jmp 0x41889a
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4188ac
or ecx, 0xffffffff
jmp 0x4188b4
cmp ecx, 0x1000
jb 0x4188db
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.0043b783
add esp, 4
test eax, eax
je 0x418958
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4188ee
test ecx, ecx
je 0x4188ec
push ecx
call fcn.0043b783
add esp, 4
mov ebx, eax
jmp 0x4188ee
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.0043cce0
mov ecx, dword [ebp - 0x10]
jmp 0x41864b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x469f6c]
test eax, eax
je 0x418927
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.0043b572
lea esp, [ebp + 0x628]
pop ebp
ret
call fcn.00402330
call fcn.0043f744
call fcn.00402330
call fcn.0043b6a9
call fcn.00402330
int3