Function at 0x41d750
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x429d1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov al, byte [esp + 0x13]
push ebx
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x14]
xor bl, bl
mov byte [esp + 0x14], al
call fcn.00404060
mov edi, 0x42ea90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00405880
test al, al
je 0x41d7c8
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x42ea90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00405860
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x134], 0
test eax, eax
jne 0x41d806
push str.psSystemPath__0
push str.Error______s
push 0x1c0
push str.Y:_services_ucminstallationgluehpzgluehpzglue_utils.cpp
push 0
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41d983
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41d841
push str.GetSystemDirectory__szBuffer___MAX_PATH____0
push str.Error______s
push 0x1c1
push str.Y:_services_ucminstallationgluehpzgluehpzglue_utils.cpp
push eax
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41d983
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00405880
test al, al
je 0x41d883
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00405860
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x41d8b2
push str.sSystemPath.empty__
push str.Error______s
push 0x1c3
push str.Y:_services_ucminstallationgluehpzgluehpzglue_utils.cpp
push edx
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41d983
lea esi, [edx - 1]
cmp edx, esi
jb 0x41d8f5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41d8f5
mov cl, byte [eax - 1]
test cl, cl
je 0x41d8e1
cmp cl, 0xff
je 0x41d8e1
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00405880
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41d8f1
mov byte [eax - 1], 0xff
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, esi
jmp 0x41d8fa
mov eax, 0x42a144
cmp byte [eax], 0x5c
je 0x41d967
mov edi, 0x42c4d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x42a140]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x41d924
call fcn.004220b6
mov edx, dword [esp + 0x18]
test esi, esi
jbe 0x41d967
lea ebx, [edx + esi]
push 0
push ebx
lea ecx, [esp + 0x18]
call fcn.00405880
test al, al
je 0x41d967
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x42c4d4
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov byte [eax + ebx], 0
mov ecx, dword [0x42a140]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x140]
push 0
push edx
call fcn.004055c0
mov bl, 1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41d9a7
mov al, byte [ecx - 1]
test al, al
je 0x41d99d
cmp al, 0xff
je 0x41d99d
dec al
mov byte [ecx - 1], al
jmp 0x41d9a7
dec ecx
push ecx
call fcn.0042240d
add esp, 4
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret