Function at 0x40bf20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46b78c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3b8
push ebp
lea eax, [esp + 0x1b4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
call fcn.0043cf12
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x3c4], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.00461b03
push str.iosubsys.
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c8], 1
call fcn.00461e71
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.0043cfd5
mov ebp, dword [esp + 0x3cc]
test eax, eax
mov dword [ebp], 0
je 0x40c1d6
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.0043d1f5
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.0043d1bc
test eax, eax
jne 0x40c1c8
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x38]
test eax, eax
jne 0x40c1c8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.0043d2c4
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x3d0], 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0045b81f
lea ecx, [esp + 0xc]
mov byte [esp + 0x3cc], 3
call fcn.00461fa9
mov edx, dword [esp + 0xc]
push str..vxd
push edx
call fcn.00445a32
add esp, 8
test eax, eax
je 0x40c08a
mov eax, dword [esp + 0xc]
push str..mpd
push eax
call fcn.00445a32
add esp, 8
test eax, eax
je 0x40c08a
mov ecx, dword [esp + 0xc]
push str..pdr
push ecx
call fcn.00445a32
add esp, 8
test eax, eax
jne 0x40c1a6
cmp dword [ebp], 0x1f4
jge 0x40c1a6
lea edx, [esp + 0x3c]
lea eax, [esp + 0xbc]
push edx
lea ecx, [esp + 0x140]
push eax
lea edx, [esp + 0x2c8]
push ecx
push edx
call fcn.004033a0
add esp, 0x10
test al, al
je 0x40c1a6
cmp dword [ebp], 0x1f4
jge 0x40c1a6
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call fcn.0043d35c
mov ecx, dword [ebp]
mov eax, dword [eax]
shl ecx, 9
mov edi, eax
xor eax, eax
lea edx, [ecx + ebp + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00461a95
mov ecx, dword [ebp]
lea edi, [esp + 0xbc]
shl ecx, 9
xor eax, eax
lea edx, [ecx + ebp + 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
lea edi, [esp + 0x13c]
shl ecx, 9
lea edx, [ecx + ebp + 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
lea edi, [esp + 0x3c]
shl ecx, 9
lea edx, [ecx + ebp + 0x184]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebp]
lea ecx, [esp + 0xc]
mov byte [esp + 0x3cc], 2
call fcn.00461a95
lea ecx, [esp + 0x14]
mov byte [esp + 0x3cc], 1
call fcn.00461a95
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40bfb2
pop edi
pop esi
lea ecx, [esp + 0x18]
call fcn.0043cf8b
lea ecx, [esp + 8]
mov byte [esp + 0x3c4], 0
call fcn.00461a95
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c4], 0xffffffff
call fcn.0043cf4f
mov ecx, dword [esp + 0x3bc]
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c4
ret