Function at 0x40ee40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed679
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x51e584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x40f210
push 0xd
mov edi, 0xf
push str._systemdrive_
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1ac], ebx
mov byte [ebp - 0x1bc], bl
call fcn.00402a60
mov dword [ebp - 4], ebx
push 0xe
push str._systemdrive__
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
call fcn.00402a60
mov byte [ebp - 4], 1
push 0x15
push str._systemdrive_windows
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
call fcn.00402a60
mov byte [ebp - 4], 2
push 0x16
push str._systemdrive_windows_
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
call fcn.00402a60
mov byte [ebp - 4], 3
push 0x26
push str._systemdrive_windows_system32drivers
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.00402a60
mov byte [ebp - 4], 4
push 0x27
push str._systemdrive_windows_system32drivers_
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00402a60
mov dword [ebp - 4], 5
push 0xd
push str._systemdrive_
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 0x1e0], edi
mov dword [ebp - 0x1e4], ebx
mov byte [ebp - 0x1f4], bl
call fcn.00402a60
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 0x114], bl
call fcn.00485940
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x1c8], ebx
mov byte [ebp - 0x1d8], bl
lea eax, [ebp - 0x114]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40eff5
sub eax, esi
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00402a60
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1c8]
dec ecx
push ecx
push ebx
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x1d8]
call fcn.004041f0
push eax
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 8
call fcn.00402880
mov byte [ebp - 4], 7
cmp dword [ebp - 0x218], 0x10
jb 0x40f05c
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00481954
add esp, 4
lea esi, [ebp - 0x1bc]
mov dword [ebp - 0x230], 6
lea esp, [esp]
cmp dword [ebp - 0x1e0], 0x10
mov eax, dword [ebp - 0x1f4]
jae 0x40f085
lea eax, [ebp - 0x1f4]
mov ecx, dword [ebp - 0x1e4]
push ecx
push ebx
push eax
mov ecx, esi
call fcn.004029b0
cmp eax, 0xffffffff
je 0x40f0de
cmp dword [ebp - 0x1c4], 0x10
mov edx, dword [ebp - 0x1d8]
jae 0x40f0af
lea edx, [ebp - 0x1d8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f0b4
sub eax, edi
push eax
push edx
mov edx, dword [ebp - 0x1e4]
push edx
push ebx
mov ecx, esi
call fcn.0041f4d0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00402c50
mov edi, 0xf
add esi, 0x1c
dec dword [ebp - 0x230]
jne 0x40f070
mov esi, dword [ebp - 0x234]
mov eax, esi
mov dword [ebp - 0x1fc], edi
mov dword [ebp - 0x200], ebx
mov byte [ebp - 0x210], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f106
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x210]
call fcn.00402a60
xor edi, edi
lea esi, [ebp - 0x1bc]
mov ecx, dword [ebp - 0x210]
mov eax, 0x10
cmp dword [ebp - 0x1fc], eax
jae 0x40f13d
lea ecx, [ebp - 0x210]
cmp dword [esi + 0x14], eax
jb 0x40f146
mov eax, dword [esi]
jmp 0x40f148
mov eax, esi
push ecx
push eax
call fcn.00484371
add esp, 8
test eax, eax
je 0x40f22e
inc edi
add esi, 0x1c
cmp edi, 6
jl 0x40f124
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x40f183
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.00481954
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 6
mov dword [ebp - 0x1fc], esi
mov dword [ebp - 0x200], ebx
mov byte [ebp - 0x210], bl
cmp dword [ebp - 0x1c4], edi
jb 0x40f1b5
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00481954
add esp, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c4], esi
mov dword [ebp - 0x1c8], ebx
mov byte [ebp - 0x1d8], bl
cmp dword [ebp - 0x1e0], edi
jb 0x40f1e2
mov eax, dword [ebp - 0x1f4]
push eax
call fcn.00481954
add esp, 4
push fcn.004db8f0
push 6
push 0x1c
lea ecx, [ebp - 0x1bc]
push ecx
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1e4], ebx
mov byte [ebp - 0x1f4], bl
mov dword [ebp - 4], 0xffffffff
call fcn.00482365
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x40f24e
mov eax, dword [ebp - 0x210]
push eax
call fcn.00481954
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 6
mov dword [ebp - 0x1fc], esi
mov dword [ebp - 0x200], ebx
mov byte [ebp - 0x210], bl
cmp dword [ebp - 0x1c4], edi
jb 0x40f280
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00481954
add esp, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c4], esi
mov dword [ebp - 0x1c8], ebx
mov byte [ebp - 0x1d8], bl
cmp dword [ebp - 0x1e0], edi
jb 0x40f2ad
mov edx, dword [ebp - 0x1f4]
push edx
call fcn.00481954
add esp, 4
push fcn.004db8f0
push 6
push 0x1c
lea eax, [ebp - 0x1bc]
push eax
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1e4], ebx
mov byte [ebp - 0x1f4], bl
mov dword [ebp - 4], 0xffffffff
call fcn.00482365
mov al, 1
jmp 0x40f212