Function at 0x40c310
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46cd3c
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.0043dae2
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x3c4], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.00462e5b
push str.iosubsys.
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c8], 1
call fcn.004631c9
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.0043dba5
mov ebp, dword [esp + 0x3cc]
test eax, eax
mov dword [ebp], 0
je 0x40c5c6
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.0043ddc5
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.0043dd8c
test eax, eax
jne 0x40c5b8
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x38]
test eax, eax
jne 0x40c5b8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.0043de94
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.0045c3ff
lea ecx, [esp + 0xc]
mov byte [esp + 0x3cc], 3
call fcn.00463301
mov edx, dword [esp + 0xc]
push str..vxd
push edx
call fcn.00446652
add esp, 8
test eax, eax
je 0x40c47a
mov eax, dword [esp + 0xc]
push str..mpd
push eax
call fcn.00446652
add esp, 8
test eax, eax
je 0x40c47a
mov ecx, dword [esp + 0xc]
push str..pdr
push ecx
call fcn.00446652
add esp, 8
test eax, eax
jne 0x40c596
cmp dword [ebp], 0x1f4
jge 0x40c596
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.00403390
add esp, 0x10
test al, al
je 0x40c596
cmp dword [ebp], 0x1f4
jge 0x40c596
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call fcn.0043df2c
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.00462ded
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.00462ded
lea ecx, [esp + 0x14]
mov byte [esp + 0x3cc], 1
call fcn.00462ded
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40c3a2
pop edi
pop esi
lea ecx, [esp + 0x18]
call fcn.0043db5b
lea ecx, [esp + 8]
mov byte [esp + 0x3c4], 0
call fcn.00462ded
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c4], 0xffffffff
call fcn.0043db1f
mov ecx, dword [esp + 0x3bc]
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c4
ret