Function at 0x41d7d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42abbb
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.00402000
mov edi, 0x431f30
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.004020f0
test al, al
je 0x41d848
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x431f30
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.00408e60
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x134], 0
test eax, eax
jne 0x41d886
push str.psSystemPath__0
push str.Error______s
push 0x1c0
push str.....includehpzgluehpzglue_utils.cpp
push 0
push 0x4321c8
call fcn.00418600
add esp, 0x18
jmp 0x41da03
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41d8c1
push str.GetSystemDirectory__szBuffer___MAX_PATH____0
push str.Error______s
push 0x1c1
push str.....includehpzgluehpzglue_utils.cpp
push eax
push 0x4321c8
call fcn.00418600
add esp, 0x18
jmp 0x41da03
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.004020f0
test al, al
je 0x41d903
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.00408e60
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x41d932
push str.sSystemPath.empty__
push str.Error______s
push 0x1c3
push str.....includehpzgluehpzglue_utils.cpp
push edx
push 0x4321c8
call fcn.00418600
add esp, 0x18
jmp 0x41da03
lea esi, [edx - 1]
cmp edx, esi
jb 0x41d975
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41d975
mov cl, byte [eax - 1]
test cl, cl
je 0x41d961
cmp cl, 0xff
je 0x41d961
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.004020f0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41d971
mov byte [eax - 1], 0xff
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, esi
jmp 0x41d97a
mov eax, 0x42b144
cmp byte [eax], 0x5c
je 0x41d9e7
mov edi, 0x42d8ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x42b140]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x41d9a4
call fcn.00422147
mov edx, dword [esp + 0x18]
test esi, esi
jbe 0x41d9e7
lea ebx, [edx + esi]
push 0
push ebx
lea ecx, [esp + 0x18]
call fcn.004020f0
test al, al
je 0x41d9e7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x42d8ac
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 [0x42b140]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x140]
push 0
push edx
call fcn.00401e00
mov bl, 1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41da27
mov al, byte [ecx - 1]
test al, al
je 0x41da1d
cmp al, 0xff
je 0x41da1d
dec al
mov byte [ecx - 1], al
jmp 0x41da27
dec ecx
push ecx
call fcn.0042213c
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