Function at 0x40ad30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415405
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 0x416361
lea ecx, [ebp - 0x14c]
call fcn.00402160
mov dword [ebp - 4], 1
push 0x416361
lea ecx, [ebp - 0x130]
call fcn.00402160
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c0]
call fcn.0040b470
movzx eax, al
test eax, eax
jne 0x40aebc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x114]
push edx
call fcn.0040ce50
add esp, 4
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402070
movzx ecx, byte [0x416797]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], 0
mov edx, dword [ebp - 0x154]
add edx, 1
push edx
call fcn.0040bb01
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.0040d220
add esp, 0xc
mov eax, dword [ebp - 0x154]
push eax
push 0x41677c
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0040cee0
add esp, 0xc
push 0x4166bc
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x150]
push eax
call fcn.00408650
add esp, 0xc
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0040ce50
add esp, 4
push eax
mov edx, dword [ebp - 0x150]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00402070
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.0040ccc9
add esp, 4
mov edx, dword [0x4164b8]
push edx
push 0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x130]
call fcn.00404720
jmp 0x40afd4
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x114]
push edx
call fcn.0040ce50
add esp, 4
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402070
movzx ecx, byte [0x416546]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], 0
mov edx, dword [ebp - 0x15c]
add edx, 1
push edx
call fcn.0040bb01
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.0040d220
add esp, 0xc
mov eax, dword [ebp - 0x15c]
push eax
push 0x416540
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0040cee0
add esp, 0xc
push 0x4166bc
mov edx, dword [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x158]
push eax
call fcn.00408650
add esp, 0xc
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.0040ce50
add esp, 4
push eax
mov edx, dword [ebp - 0x158]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00402070
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.0040ccc9
add esp, 4
mov edx, dword [0x4164b8]
push edx
push 0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x130]
call fcn.00404720
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00401b90
mov ecx, dword [0x4164b8]
push ecx
push 0
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401f80
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.00401b90
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x14c]
call fcn.00401b90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4