Function at 0x40a880
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x41fe0c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x21c]
mov esi, dword [ebp + 0x220]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call fcn.00408390
mov edi, eax
mov dword [ebp - 0x18], edi
test ebx, ebx
je 0x40a8e3
cmp byte [ebx], 0
jne 0x40a8e8
mov ebx, str.shellfolder
mov eax, dword [ebp + 0x218]
cmp eax, 2
jne 0x40a924
push 0x5540
call fcn.0040db80
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40aacb
push str.SOFTWAREClassesCLSIDCB8DE863_0561_4ffd_9B86_5BA2E941BA52OLEShellCommands
push edi
push 2
push ebx
mov ecx, eax
call fcn.0040a700
jmp 0x40aacd
cmp eax, 1
jne 0x40aa6d
mov byte [ebp + 0x108], 0
push 0x103
push 0
lea eax, [ebp + 0x109]
push eax
call fcn.0040feb0
add esp, 0xc
cmp dword [0x4411f4], 0
je 0x40a9d8
mov byte [ebp], 0
push 0x104
push 0
lea ecx, [ebp + 1]
push ecx
call fcn.0040feb0
add esp, 0xc
push 0x104
lea edx, [ebp]
push edx
mov eax, dword [0x441430]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp]
push ecx
call fcn.0040fe80
add esp, 8
test eax, eax
je 0x40a9d8
mov edx, dword [str.CEAdmin.cfg]
mov dword [eax + 1], edx
mov ecx, dword [0x42958c]
mov dword [eax + 5], ecx
mov edx, dword [0x429590]
mov dword [eax + 9], edx
lea eax, [ebp]
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40a9d8
push 0x103
lea ecx, [ebp]
push ecx
lea edx, [ebp + 0x108]
push edx
call fcn.00410120
add esp, 0xc
cmp byte [ebp + 0x108], 0
jne 0x40aa41
push 0x104
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + 0x108]
push ecx
call fcn.0040e2c0
add esp, 4
mov eax, str.msocxushell.dll
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40aa10
sub eax, edx
lea edi, [ebp + 0x108]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40aa24
mov ecx, eax
mov esi, 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 edi, dword [ebp - 0x18]
push 0x5540
call fcn.0040db80
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40aacb
lea edx, [ebp + 0x108]
push edx
push edi
push 1
push ebx
mov ecx, eax
call fcn.0040a700
jmp 0x40aacd
cmp eax, 3
jne 0x40aa9c
push 0x5540
call fcn.0040db80
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40aacb
push 0x42148a
push edi
push 3
push ebx
mov ecx, eax
call fcn.0040a700
jmp 0x40aacd
cmp eax, 4
jne 0x40aad4
test esi, esi
je 0x40aad4
push 0x5540
call fcn.0040db80
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x40aacb
push esi
push edi
push 1
push ebx
mov ecx, eax
call fcn.0040a700
jmp 0x40aacd
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40aae1
push 1
mov ecx, edi
call fcn.00408370
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x210
mov esp, ebp
pop ebp
ret