Function at 0x40ef80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee269
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 0x40f350
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.00486870
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 0x40f135
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.00404190
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 0x40f19c
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00482624
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 0x40f1c5
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 0x40f21e
cmp dword [ebp - 0x1c4], 0x10
mov edx, dword [ebp - 0x1d8]
jae 0x40f1ef
lea edx, [ebp - 0x1d8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f1f4
sub eax, edi
push eax
push edx
mov edx, dword [ebp - 0x1e4]
push edx
push ebx
mov ecx, esi
call fcn.004208a0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00402c40
mov edi, 0xf
add esi, 0x1c
dec dword [ebp - 0x230]
jne 0x40f1b0
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 0x40f246
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 0x40f27d
lea ecx, [ebp - 0x210]
cmp dword [esi + 0x14], eax
jb 0x40f286
mov eax, dword [esi]
jmp 0x40f288
mov eax, esi
push ecx
push eax
call fcn.00485041
add esp, 8
test eax, eax
je 0x40f36e
inc edi
add esi, 0x1c
cmp edi, 6
jl 0x40f264
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x40f2c3
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.00482624
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 0x40f2f5
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00482624
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 0x40f322
mov eax, dword [ebp - 0x1f4]
push eax
call fcn.00482624
add esp, 4
push fcn.00402fb0
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.00483033
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.00482279
mov esp, ebp
pop ebp
ret
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1fc], edi
jb 0x40f38e
mov eax, dword [ebp - 0x210]
push eax
call fcn.00482624
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 0x40f3c0
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00482624
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 0x40f3ed
mov edx, dword [ebp - 0x1f4]
push edx
call fcn.00482624
add esp, 4
push fcn.00402fb0
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.00483033
mov al, 1
jmp 0x40f352