Function at 0x41bf90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd1c4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52c1c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov edx, dword [ebp + 8]
lea edi, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmp esi, 8
mov dword [ebp - 4], 0
cmovae ecx, edx
mov dword [ebp - 0x10], 0x4db90f
cmovae edi, edx
lea eax, [ecx + eax*2]
lea ecx, [ebp + 8]
cmovae ecx, edx
lea edx, [ebp - 0x10]
push edx
push edi
push eax
push ecx
call fcn.00403f20
mov eax, dword fs:[0x2c]
add esp, 0x10
mov ecx, dword [0x532294]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5312bc]
cmp eax, dword [ecx + 0xc]
jle 0x41c04b
push 0x5312bc
call fcn.004bf503
add esp, 4
cmp dword [0x5312bc], 0xffffffff
jne 0x41c04b
push 0x5312b0
mov byte [ebp - 4], 1
call fcn.00419840
push 0x5011b0
call fcn.004bf19e
push 0x5312bc
call fcn.004bf4c4
add esp, 0xc
mov ecx, dword [0x5312b4]
mov eax, 0x2aaaaaab
mov esi, dword [0x5312b0]
xor edi, edi
sub ecx, esi
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp - 0x10], ebx
je 0x41c0bf
cmp dword [esi + 0x14], 8
jb 0x41c07b
mov edx, dword [esi]
jmp 0x41c07d
mov edx, esi
cmp word [edx], 0
jne 0x41c087
xor eax, eax
jmp 0x41c0a2
mov eax, edx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c090
sub eax, ebx
mov ebx, dword [ebp - 0x10]
sar eax, 1
push eax
push 0
push edx
lea ecx, [ebp + 8]
call fcn.00425640
cmp eax, 0xffffffff
jne 0x41c19f
inc edi
add esi, 0x18
cmp edi, ebx
jb 0x41c071
push 5
push 0
push str.local
lea ecx, [ebp + 8]
call fcn.00425640
cmp eax, 0xffffffff
je 0x41c0ef
push 5
push 0
push str._temp
lea ecx, [ebp + 8]
call fcn.00425640
cmp eax, 0xffffffff
jne 0x41c19f
push 0xd
push 0
push str.program_files
lea ecx, [ebp + 8]
call fcn.00425640
cmp eax, 0xffffffff
jne 0x41c19f
mov ecx, 0x5310a8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c111
sub ecx, edx
sar ecx, 1
jne 0x41c132
push 0x103
push 0x5310a8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x5310a8
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c140
sub ecx, edx
sar ecx, 1
je 0x41c16f
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 0x5310a8
push eax
call fcn.004db643
add esp, 0xc
test eax, eax
je 0x41c19f
push 1
push 0
push 0x504a20
lea ecx, [ebp + 8]
call fcn.00425640
cmp eax, 0xffffffff
jne 0x41c19f
push 0xb
push 0
push 0x504a24
lea ecx, [ebp + 8]
call fcn.00425640
cmp eax, 0xffffffff
jne 0x41c19f
xor bl, bl
jmp 0x41c1a1
mov bl, 1
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x41c1f9
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x7fffffff
jbe 0x41c1b9
call fcn.004db091
add eax, eax
cmp eax, 0x1000
jb 0x41c1f0
test cl, 0x1f
je 0x41c1cc
call fcn.004db091
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x41c1d8
call fcn.004db091
sub ecx, eax
cmp ecx, 4
jae 0x41c1e4
call fcn.004db091
cmp ecx, 0x23
jbe 0x41c1ee
call fcn.004db091
mov ecx, eax
push ecx
call fcn.004bee10
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18