Function at 0x10001450
Capabilities:
Get hostname
Get session user name
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c510
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x100661b0]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call fcn.100046b0
mov byte [ebp - 4], 1
lea esi, [ebx + 0x49c]
lea eax, [ebp - 0x6c]
call fcn.10004740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10004620
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x40]
call fcn.100046b0
mov byte [ebp - 4], 2
lea esi, [ebx + 0x4bc]
lea eax, [ebp - 0x6c]
call fcn.10004740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10004620
cmp edi, dword [ebx + 4]
je 0x10001524
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
cmp edi, esi
je 0x1000151f
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx + 4], eax
cmp eax, esi
jne 0x10001526
push 0x8007000e
call fcn.10003a00
mov dword [ebx + 4], esi
jmp 0x10001526
xor esi, esi
mov dword [ebp - 0x3c], 0x100
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 0x278]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [ebp - 0x3c]
mov word [ebx + edx*2 + 0x278], si
mov dword [ebp - 0x3c], 0xf
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 0x47a]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [ebp - 0x3c]
mov word [ebx + edx*2 + 0x47a], si
cmp byte [ebp + 0x1c], 0
jne 0x10001584
mov eax, dword [ebx + 4]
push eax
push 0x10054938
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebx + 8], eax
mov al, byte [ebp + 0x1c]
mov byte [ebx + 0x56], al
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x48]
call fcn.100046b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
call fcn.10018130
test al, al
sete byte [ebp - 0x40]
lea edx, [ebp - 0x34]
push edx
call fcn.10017a50
add esp, 4
mov dword [ebp - 0x44], 1
lea eax, [ebp - 0x6c]
push eax
mov edx, 0x10054518
call fcn.100046b0
mov byte [ebp - 4], 4
lea esi, [ebx + 0xc]
push 0
lea ecx, [ebp - 0x6c]
push ecx
lea eax, [ebp - 0x34]
mov edi, esi
call fcn.100179e0
test al, al
sete byte [ebp - 0x35]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.10004620
cmp byte [ebp - 0x35], 0
je 0x10001622
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10001604
lea eax, [ebp - 0x2c]
mov edx, dword [ebx]
push 0
push eax
push 0xc0b1789b
push ebx
mov eax, dword [edx + 0x10]
call eax
push str.Cannot_Open_Log_File
call dword [sym.imp.BException.dll_public:_static_class_BException____cdecl_BException::Raise_wchar_t_const__]
add esp, 0x14
cmp byte [ebp - 0x40], 0
je 0x10001655
cmp dword [esi + 4], 0
je 0x10001655
mov ecx, dword [esi + 4]
push ecx
push 3
push 1
push 0x10054510
call fcn.10034866
add esp, 0x10
cmp dword [esi + 4], 0
je 0x10001655
mov edx, dword [esi + 4]
push edx
call fcn.100368f4
add esp, 4
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [ebp - 0x44], 2
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x80]
mov ecx, ebx
call fcn.10001810
cmp byte [ebp + 0x1c], 0
je 0x100016a6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10004620
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100346f8
mov esp, ebp
pop ebp
ret 0x18
mov ecx, ebx
call fcn.10002190
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10004620
mov eax, esi
jmp 0x10001688