Function at 0x40ef50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee2a9
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x51f584]
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 0x40f320
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.00402a50
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.00402a50
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.00402a50
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.00402a50
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.00402a50
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.00402a50
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.00402a50
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 0x114], bl
call fcn.004868c0
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 0x40f105
sub eax, esi
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00402a50
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.00404160
push eax
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 8
call fcn.00402860
mov byte [ebp - 4], 7
cmp dword [ebp - 0x218], 0x10
jb 0x40f16c
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00482674
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 0x40f195
lea eax, [ebp - 0x1f4]
mov ecx, dword [ebp - 0x1e4]
push ecx
push ebx
push eax
mov ecx, esi
call fcn.00402990
cmp eax, 0xffffffff
je 0x40f1ee
cmp dword [ebp - 0x1c4], 0x10
mov edx, dword [ebp - 0x1d8]
jae 0x40f1bf
lea edx, [ebp - 0x1d8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f1c4
sub eax, edi
push eax
push edx
mov edx, dword [ebp - 0x1e4]
push edx
push ebx
mov ecx, esi
call fcn.00420850
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00402c40
mov edi, 0xf
add esi, 0x1c
dec dword [ebp - 0x230]
jne 0x40f180
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 0x40f216
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x210]
call fcn.00402a50
xor edi, edi
lea esi, [ebp - 0x1bc]
mov ecx, dword [ebp - 0x210]
mov eax, 0x10
cmp dword [ebp - 0x1fc], eax
jae 0x40f24d
lea ecx, [ebp - 0x210]
cmp dword [esi + 0x14], eax
jb 0x40f256
mov eax, dword [esi]
jmp 0x40f258
mov eax, esi
push ecx
push eax
call fcn.00485091
add esp, 8
test eax, eax
je 0x40f33e
inc edi
add esi, 0x1c
cmp edi, 6
jl 0x40f234
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x40f293
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.00482674
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 0x40f2c5
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00482674
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 0x40f2f2
mov eax, dword [ebp - 0x1f4]
push eax
call fcn.00482674
add esp, 4
push fcn.004dc930
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.00483083
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.004822c9
mov esp, ebp
pop ebp
ret
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x40f35e
mov eax, dword [ebp - 0x210]
push eax
call fcn.00482674
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 0x40f390
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00482674
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 0x40f3bd
mov edx, dword [ebp - 0x1f4]
push edx
call fcn.00482674
add esp, 4
push fcn.004dc930
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.00483083
mov al, 1
jmp 0x40f322