Function at 0x40bb00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x3c4
push ebx
push esi
push edi
push 4
push 0
push 0
call dword [0x4a4950]
mov ebx, dword [esp + 0x3d4]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
mov dword [ebx], 0
je 0x40bdaf
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 [0x4a494c]
test eax, eax
jne 0x40bda8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40bda8
mov ecx, dword [esp + 0x14]
push ebp
lea esi, [ecx + 0x24]
lea edx, [esi + esi*8]
shl edx, 2
push edx
call fcn.004617d6
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 [0x4a494c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
test eax, eax
jbe 0x40bd9e
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.0044537b
mov eax, dword [ebx]
add esp, 0x10
cmp eax, 0x1f4
jge 0x40bd6e
mov ecx, dword [ebp]
push ecx
call fcn.0040b6d0
add esp, 4
test al, al
jne 0x40bd6e
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.004033a0
add esp, 0x10
test al, al
je 0x40bcdb
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 0x40bd48
mov ecx, dword [ebx]
mov edi, 0x489e9c
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, 0x489e9c
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, 0x489e9c
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 [0x4a4948]
push eax
call dword [0x4a4944]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
add ebp, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x40bbc2
mov ebp, dword [esp + 0x20]
push ebp
call fcn.004617ff
add esp, 4
pop ebp
push edi
call dword [0x4a4944]
call fcn.0040b100
test eax, eax
je 0x40bf16
mov eax, dword [ebx]
cmp eax, 0x1f4
jge 0x40bf16
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.004033a0
add esp, 0x10
test al, al
je 0x40be8a
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 0x40bef7
mov ecx, dword [ebx]
mov edi, 0x489e9c
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, 0x489e9c
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, 0x489e9c
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