Function at 0x4e47a0
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656039
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe14
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CLogListViewCtrl.0
mov dword [ebp - 4], 1
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x4e4a1e
push 1
push 0x1a
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x220]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4e4800
mov ecx, dword [0x66ea40]
mov eax, 0x675e64
mov dword [edi], ecx
mov edx, eax
jmp 0x4e4820
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e4820
lea edi, [ebp - 0x220]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4e4836
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x220]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x4e4860
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4e4860
mov edx, dword [str.Log]
mov ecx, dword [0x676084]
mov dword [eax], edx
mov dx, word [0x676088]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x220]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4e48a0
push ebx
push 0
push 0x80
push 4
push 0
push 0
mov ecx, 0xb
mov esi, str.AgentInstalation.log
rep movsd dword es:[edi], dword [esi]
push 0x40000000
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x100
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 2
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x100
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 8
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0xe20]
push str._r_n_r_n__s__s__r_n
push eax
call fcn.004dc9d0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xe20]
push edx
call ebx
add eax, eax
push eax
lea eax, [ebp - 0xe20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x4e4a13
lea esp, [esp]
mov eax, dword [esi + 0x10]
push eax
lea edx, [ebp - 0xe20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._r_n_r_n
lea eax, [ebp - 0xe20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xe20]
push edx
call ebx
add eax, eax
push eax
lea eax, [ebp - 0xe20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi + 0x15], 0
jne 0x4e4a07
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x4e49ec
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x4e4a07
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x4e49e0
jmp 0x4e4a07
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x4e4a05
cmp esi, dword [eax + 8]
jne 0x4e4a05
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x4e49f5
mov esi, eax
mov ecx, dword [ebp - 0x10]
cmp esi, dword [ecx + 0x28]
jne 0x4e4980
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10]
pop ebx
mov byte [ebp - 4], 0
lea esi, [edi + 0x24]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
call fcn.004b18a0
mov byte [ebp - 4], 0
mov esi, dword [esi + 4]
push esi
call fcn.0060faf6
add esp, 4
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
lea eax, [edi + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ecx
mov eax, dword [eax + 0xc]
pop edi
pop esi
test eax, eax
je 0x4e4a6c
push eax
call fcn.0060ec68
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret