Function at 0x40ec90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec7e9
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x51d584]
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 0x40f060
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.00402a70
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.00402a70
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.00402a70
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.00402a70
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.00402a70
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.00402a70
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.00402a70
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 0x114], bl
call fcn.00484cd0
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 0x40ee45
sub eax, esi
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00402a70
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.00404200
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 0x40eeac
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00480d64
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 0x40eed5
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 0x40ef2e
cmp dword [ebp - 0x1c4], 0x10
mov edx, dword [ebp - 0x1d8]
jae 0x40eeff
lea edx, [ebp - 0x1d8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ef04
sub eax, edi
push eax
push edx
mov edx, dword [ebp - 0x1e4]
push edx
push ebx
mov ecx, esi
call fcn.0041ee40
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00402c60
mov edi, 0xf
add esi, 0x1c
dec dword [ebp - 0x230]
jne 0x40eec0
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 0x40ef56
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x210]
call fcn.00402a70
xor edi, edi
lea esi, [ebp - 0x1bc]
mov ecx, dword [ebp - 0x210]
mov eax, 0x10
cmp dword [ebp - 0x1fc], eax
jae 0x40ef8d
lea ecx, [ebp - 0x210]
cmp dword [esi + 0x14], eax
jb 0x40ef96
mov eax, dword [esi]
jmp 0x40ef98
mov eax, esi
push ecx
push eax
call fcn.0048363e
add esp, 8
test eax, eax
je 0x40f07e
inc edi
add esi, 0x1c
cmp edi, 6
jl 0x40ef74
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x40efd3
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.00480d64
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 0x40f005
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00480d64
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 0x40f032
mov eax, dword [ebp - 0x1f4]
push eax
call fcn.00480d64
add esp, 4
push fcn.00402fd0
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.0048168f
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.004809b9
mov esp, ebp
pop ebp
ret
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x40f09e
mov eax, dword [ebp - 0x210]
push eax
call fcn.00480d64
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 0x40f0d0
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00480d64
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 0x40f0fd
mov edx, dword [ebp - 0x1f4]
push edx
call fcn.00480d64
add esp, 4
push fcn.00402fd0
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.0048168f
mov al, 1
jmp 0x40f062