Function at 0x40aea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x530], eax
mov eax, dword [ebp + 0x28]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x528], edx
mov dword [ebp - 0x52c], eax
test eax, eax
je 0x40aeed
mov dword [eax], 0
test esi, esi
jne 0x40aeff
call fcn.00409830
mov ecx, eax
call fcn.00409860
mov esi, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af04
push 0xff
sub eax, edx
lea ecx, [ebp - 0x514]
push ecx
inc eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40af55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.InstallLsp:_MultiByteToWideChar_failed_to_convert__s__Error___d_n
call fcn.00413260
add esp, 0xc
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af60
push 0x104
sub eax, edx
lea edx, [ebp - 0x314]
push edx
inc eax
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40afb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.InstallLsp:_MultiByteToWidechar_failed_to_convert__s:_Error___d_n
call fcn.00413260
add esp, 0xc
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
jne 0x40afda
push str.InstallLsp:_Error__Must_specify_at_least_one_provider_to_layer_over__n_n
call fcn.00413260
add esp, 4
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x514]
push eax
push str.LSP_name_is__S_n
call fcn.004131d0
lea ecx, [ebp - 0x524]
push ecx
push edi
call fcn.00413a50
add esp, 0x10
test eax, eax
jne 0x40b19f
test ebx, ebx
je 0x40b02a
mov edx, dword [ebp - 0x524]
mov eax, dword [ebp - 0x520]
mov ecx, dword [ebp - 0x51c]
mov dword [ebx], edx
mov edx, dword [ebp - 0x518]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
lea eax, [ebp - 0x108]
push eax
push 0x104
mov byte [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x432a54
push edi
call fcn.0041a3f0
add esp, 8
test eax, eax
je 0x40b08c
lea eax, [ebp - 0x108]
mov esi, edi
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40b082
mov cl, byte [esi + eax]
test cl, cl
je 0x40b082
mov byte [eax], cl
inc eax
dec edx
jne 0x40b066
dec eax
mov byte [eax], dl
jmp 0x40b0b4
test edx, edx
jne 0x40b087
dec eax
mov byte [eax], 0
jmp 0x40b0b4
push 0x432a54
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.004041e0
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.004041e0
lea ecx, [ebp - 0x108]
push 0x432a50
push ecx
call fcn.0041a18d
add esp, 8
test eax, eax
je 0x40b110
push eax
call fcn.00419b4d
lea eax, [ebp - 0x108]
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b0e0
push 0x104
sub eax, edx
lea edx, [ebp - 0x314]
push edx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40af86
mov ecx, dword [ebp - 0x528]
mov esi, dword [ebp - 0x534]
mov eax, dword [esi]
mov ebx, dword [ebp - 0x530]
push ecx
lea edx, [ebp - 0x514]
push edx
push eax
push ebx
call fcn.00409b70
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40b15f
push str.InstallLsp:_CreateDummyEntry_failed__n
call fcn.00413260
add esp, 4
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x52c]
push ecx
push 1
push edi
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x524]
push eax
push ebx
call fcn.00409a90
add esp, 0x18
test eax, eax
je 0x40b1b0
push str.InstallLsp:_Unable_to_install_the_dummy_LSP_entry__n
call fcn.00413260
add esp, 4
push edi
or esi, 0xffffffff
call fcn.004154c0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret
push edi
call fcn.004154c0
add esp, 4
cmp dword [ebp - 0x528], 0
jne 0x40b1ee
mov ecx, dword [ebp - 0x52c]
mov edx, dword [ebp + 0x14]
push ecx
push edx
push esi
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x514]
push ecx
lea edx, [ebp - 0x524]
push edx
push ebx
call fcn.0040abc0
add esp, 0x1c
jmp 0x40b211
mov eax, dword [ebp + 0x14]
push eax
push esi
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x514]
push edx
lea eax, [ebp - 0x524]
push eax
push ebx
call fcn.0040a2f0
add esp, 0x18
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b19d
lea ecx, [ebp - 0x524]
push ecx
push ebx
call fcn.0040d600
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419ad1
mov esp, ebp
pop ebp
ret