Function at 0x40bef0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x3c4
push ebx
push esi
push edi
push 4
push 0
push 0
call dword [0x4a6cf0]
mov ebx, dword [esp + 0x3d4]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
mov dword [ebx], 0
je 0x40c19f
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x1b0]
push 0x24
push eax
push 3
push 0xb
push edi
mov dword [esp + 0x30], 0
call dword [0x4a6cec]
test eax, eax
jne 0x40c198
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40c198
mov ecx, dword [esp + 0x14]
push ebp
lea esi, [ecx + 0x24]
lea edx, [esi + esi*8]
shl edx, 2
push edx
call fcn.00462b2e
add esp, 4
mov ebp, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push ebp
push 3
push 0xb
push edi
mov dword [esp + 0x40], ebp
call dword [0x4a6cec]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
test eax, eax
jbe 0x40c18e
lea eax, [esp + 0x1cc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp]
lea edx, [esp + 0x1cc]
push ecx
push edx
lea eax, [esp + 0x2d8]
push str._s_system32drivers_s.sys
push eax
call fcn.00445f93
mov eax, dword [ebx]
add esp, 0x10
cmp eax, 0x1f4
jge 0x40c15e
mov ecx, dword [ebp]
push ecx
call fcn.0040bac0
add esp, 4
test al, al
jne 0x40c15e
mov edx, dword [ebx]
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
shl edx, 9
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx + ebx + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa8]
push ecx
push edx
lea ecx, [esp + 0x2d8]
push eax
push ecx
call fcn.00403390
add esp, 0x10
test al, al
je 0x40c0cb
mov edx, dword [ebx]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
shl edx, 9
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx + ebx + 0x84]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
lea edi, [esp + 0x28]
shl ecx, 9
lea edx, [ecx + ebx + 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
lea edi, [esp + 0xa8]
shl ecx, 9
lea edx, [ecx + ebx + 0x184]
jmp 0x40c138
mov ecx, dword [ebx]
mov edi, 0x48beac
shl ecx, 9
xor eax, eax
lea edx, [ecx + ebx + 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edi, 0x48beac
shl ecx, 9
lea edx, [ecx + ebx + 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edi, 0x48beac
shl ecx, 9
lea edx, [ecx + ebx + 0x184]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov edi, dword [esp + 0x24]
inc eax
mov dword [ebx], eax
mov ecx, dword [ebp]
push 1
push ecx
push edi
call dword [0x4a6ce8]
push eax
call dword [0x4a6ce4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
add ebp, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x40bfb2
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00462b57
add esp, 4
pop ebp
push edi
call dword [0x4a6ce4]
call fcn.0040b4f0
test eax, eax
je 0x40c306
mov eax, dword [ebx]
cmp eax, 0x1f4
jge 0x40c306
shl eax, 9
mov edi, str.InCDRec
or ecx, 0xffffffff
lea edx, [eax + ebx + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa4]
push ecx
push edx
push eax
push str.InCDRec.sys
call fcn.00403390
add esp, 0x10
test al, al
je 0x40c27a
mov ecx, dword [ebx]
lea edi, [esp + 0x124]
shl ecx, 9
xor eax, eax
lea edx, [ecx + ebx + 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
lea edi, [esp + 0x24]
shl ecx, 9
lea edx, [ecx + ebx + 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
lea edi, [esp + 0xa4]
shl ecx, 9
lea edx, [ecx + ebx + 0x184]
jmp 0x40c2e7
mov ecx, dword [ebx]
mov edi, 0x48beac
shl ecx, 9
xor eax, eax
lea edx, [ecx + ebx + 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edi, 0x48beac
shl ecx, 9
lea edx, [ecx + ebx + 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edi, 0x48beac
shl ecx, 9
lea edx, [ecx + ebx + 0x184]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebx]
pop edi
pop esi
pop ebx
add esp, 0x3c4
ret