Function at 0x40ad90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415465
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x170], 0
push 0x416369
lea ecx, [ebp - 0x14c]
call fcn.00402170
mov dword [ebp - 4], 1
push 0x416369
lea ecx, [ebp - 0x130]
call fcn.00402170
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c0]
call fcn.0040b4d0
movzx eax, al
test eax, eax
jne 0x40af1c
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x114]
push edx
call fcn.0040ceb0
add esp, 4
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402080
movzx ecx, byte [0x4167af]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], 0
mov edx, dword [ebp - 0x154]
add edx, 1
push edx
call fcn.0040bb61
add esp, 4
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x154]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x150]
push edx
call fcn.0040d280
add esp, 0xc
mov eax, dword [ebp - 0x154]
push eax
push 0x416794
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0040cf40
add esp, 0xc
push 0x4166d4
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x150]
push eax
call fcn.004086b0
add esp, 0xc
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0040ceb0
add esp, 4
push eax
mov edx, dword [ebp - 0x150]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00402080
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.0040cd29
add esp, 4
mov edx, dword [0x4164d0]
push edx
push 0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x130]
call fcn.00404780
jmp 0x40b034
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x114]
push edx
call fcn.0040ceb0
add esp, 4
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402080
movzx ecx, byte [0x41655e]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], 0
mov edx, dword [ebp - 0x15c]
add edx, 1
push edx
call fcn.0040bb61
add esp, 4
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x15c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x158]
push edx
call fcn.0040d280
add esp, 0xc
mov eax, dword [ebp - 0x15c]
push eax
push 0x416558
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0040cf40
add esp, 0xc
push 0x4166d4
mov edx, dword [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x158]
push eax
call fcn.004086b0
add esp, 0xc
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0040ceb0
add esp, 4
push eax
mov edx, dword [ebp - 0x158]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00402080
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.0040cd29
add esp, 4
mov edx, dword [0x4164d0]
push edx
push 0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x130]
call fcn.00404780
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00401ba0
mov ecx, dword [0x4164d0]
push ecx
push 0
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401f90
mov eax, dword [ebp - 0x170]
or eax, 1
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x130]
call fcn.00401ba0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x14c]
call fcn.00401ba0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4