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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588cd9
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 0x45d3fe
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 0x45d1e0
mov ecx, dword [0x59e4c4]
mov eax, 0x59ffbc
mov dword [edi], ecx
mov edx, eax
jmp 0x45d200
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d200
lea edi, [ebp - 0x220]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x45d216
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 0x45d240
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x45d240
mov edx, dword [str.Log]
mov ecx, dword [0x5a0288]
mov dword [eax], edx
mov dx, word [0x5a028c]
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 0x45d280
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 pe_nt_image_headers32
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 2
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push pe_nt_image_headers32
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.00456aa0
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 0x45d3f3
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 0x45d3e7
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x45d3cc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x45d3e7
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x45d3c0
jmp 0x45d3e7
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x45d3e5
cmp esi, dword [eax + 8]
jne 0x45d3e5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x45d3d5
mov esi, eax
mov ecx, dword [ebp - 0x10]
cmp esi, dword [ecx + 0x28]
jne 0x45d360
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.00436670
mov byte [ebp - 4], 0
mov esi, dword [esi + 4]
push esi
call fcn.00553d26
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 0x45d44c
push eax
call fcn.00552eea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret