Function at 0x4ec76681
Capabilities:
Get common file path

Disassembly:
leave
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb5c
mov eax, dword [section..data]
push edi
xor edi, edi
cmp dword [0x4edd094c], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xb5c], 1
jne 0x4ecc367a
cmp dword [0x4edd01d8], edi
push esi
push 0x104
je 0x4ecc353c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp esi, edi
jbe 0x4ec766fe
lea eax, [esi - 1]
cmp eax, edi
jl 0x4ec766eb
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x4ec767da
dec eax
jns 0x4ec766d9
cmp esi, edi
jbe 0x4ec766fe
cmp word [ebp + esi*2 - 0x20e], 0x5c
je 0x4ecc3574
mov word [ebp + esi*2 - 0x20c], di
push ebx
lea edi, [esi + 8]
lea eax, [edi + edi]
push eax
lea ebx, [esi + 7]
call fcn.4ec52209
push edi
mov dword [0x4edd094c], eax
call fcn.4ec52209
mov dword [0x4edd0948], eax
lea eax, [ebx + ebx]
push eax
call fcn.4ec52209
push ebx
mov dword [0x4edd0944], eax
call fcn.4ec52209
mov ecx, dword [0x4edd094c]
xor edi, edi
cmp ecx, edi
mov dword [0x4edd0940], eax
je 0x4ec767e1
cmp dword [0x4edd0948], edi
je 0x4ec767e1
cmp dword [0x4edd0944], edi
je 0x4ec767e1
cmp eax, edi
je 0x4ec767e1
lea eax, [ebp - 0x20c]
push eax
push ecx
call fcn.4ec7e709
lea eax, [ebp - 0x20c]
push eax
push dword [0x4edd0944]
call fcn.4ec7e709
cmp dword [0x4edd01d8], edi
je 0x4ecc357a
push 0x4ec767bc
push dword [0x4edd094c]
call fcn.4ec7611b
push 0x4ec767cc
push dword [0x4edd0944]
call fcn.4ec7611b
pop ebx
pop esi
jmp 0x4ecc367a
mov esi, eax
jmp 0x4ec766eb
mov dword [ebp - 0xb5c], edi
jmp 0x4ec767b2
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x738]
call fcn.4ed040dd
push dword [ebp - 0x734]
lea eax, [ebp - 0x20c]
push eax
call fcn.4ec7e709
jmp 0x4ec766eb
dec esi
jmp 0x4ec766fe
push dword [0x4edd094c]
lea ecx, [ebp - 0x528]
call fcn.4ec8681d
push dword [0x4edd0944]
lea ecx, [ebp - 0x41c]
call fcn.4ec8681d
xor eax, eax
mov ecx, 0x104
cmp eax, ecx
jae 0x4ecc35be
mov edx, dword [ebp - 0x524]
mov bl, byte [eax + 0x4ecc3690]
add edx, eax
inc eax
cmp eax, 8
mov byte [edx + esi], bl
jb 0x4ecc359e
xor eax, eax
cmp eax, ecx
jae 0x4ecc35db
mov edx, dword [ebp - 0x418]
mov bl, byte [eax + 0x4ecc3698]
add edx, eax
inc eax
cmp eax, 7
mov byte [edx + esi], bl
jb 0x4ecc35c0
push dword [ebp - 0x524]
lea ecx, [ebp - 0x948]
call fcn.4ed040dd
push dword [ebp - 0x418]
lea ecx, [ebp - 0xb58]
call fcn.4ed040dd
push dword [ebp - 0x944]
push dword [0x4edd094c]
call fcn.4ec7e709
push dword [ebp - 0xb54]
push dword [0x4edd0944]
call fcn.4ec7e709
mov esi, dword [ebp - 0x524]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4ecc362a
mov edi, dword [0x4edd0948]
sub eax, ecx
lea ecx, [eax + 1]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x418]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4ecc3655
mov edi, dword [0x4edd0940]
sub eax, ecx
lea ecx, [eax + 1]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4ec767b2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xb5c]
pop edi
call fcn.4ecfd994
jmp 0x4ec72472