Function at 0x40ec00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5455d1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, ecx
push 0x556794
lea ecx, [ebp - 0x21c]
call fcn.00404fe0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 4], 0
mov word [ebp - 0x218], ax
call fcn.0052c850
add esp, 0xc
test esi, esi
jne 0x40ec8d
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40ee5b
mov eax, dword [ebp + 8]
cmp eax, 0xb
ja case.0x40ec99.3
jmp dword [eax*4 + 0x40ee88]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40ee0e
lea ecx, [ebp - 0x21c]
call fcn.00402480
jmp 0x40ee67
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x40ecac
mov edi, dword [edi + 0x64c]
mov ecx, dword [ebp + 0x10]
push edi
push ecx
push esi
call fcn.0052cd4a
add esp, 0xc
jmp 0x40ee0e
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40ecb4
mov ecx, dword [ebp + 0x10]
push 2
lea eax, [ebp - 0x218]
push eax
push ecx
push esi
call fcn.0052d9fb
add esp, 0x10
jmp 0x40ee0e
mov edi, dword [edi + 0x648]
mov edx, dword [ebp + 0x10]
push edi
push edx
push esi
call fcn.0052cd4a
add esp, 0xc
jmp 0x40ee0e
mov eax, dword [ebp + 0x10]
push eax
push esi
mov ecx, edi
call fcn.004083e0
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.00402480
mov eax, esi
jmp 0x40ee69
mov edi, dword [edi + 0x658]
mov ecx, dword [ebp + 0x10]
push edi
push ecx
push esi
call fcn.0052cd4a
add esp, 0xc
jmp 0x40ee0e
push 0
lea edx, [ebp - 0x220]
push edx
mov ecx, edi
call fcn.0040d850
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00402930
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call fcn.00402480
lea ecx, [ebp - 0x21c]
call fcn.004047e0
push eax
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.0052cd4a
add esp, 0xc
jmp 0x40ee0e
push 1
lea ecx, [ebp - 0x224]
push ecx
mov ecx, edi
call fcn.0040d850
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00402930
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0
call fcn.00402480
lea ecx, [ebp - 0x21c]
call fcn.004047e0
mov edx, dword [ebp + 0x10]
push eax
push edx
push esi
call fcn.0052cd4a
add esp, 0xc
jmp 0x40ee0e
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40ee69
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 0xc