Function at 0x491020
Capabilities:
Get hostname
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.Function_Start
mov ecx, ebx
call fcn.004a2bf0
mov eax, dword [ebx + 0x18]
add esp, 4
add eax, 0x40
push eax
lea ecx, [ebp - 0x20]
push 0x30
push ecx
call dword [0x566320]
mov edx, dword [ebx]
mov eax, dword [ebp - 0x20]
mov dword [eax], edx
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x20]
add esp, 0xc
push ecx
push edx
push 0x28
push eax
call dword [0x56635c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x18]
add ecx, dword [eax + 0x14]
push 0x104
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 0x14]
add edx, eax
mov dword [eax + 0x20], edx
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
mov dword [ebp - 0x1c], edi
call dword [0x566370]
mov esi, dword [ebp - 0x1c]
push edi
call fcn.004b79a0
mov eax, dword [ebp - 0x1c]
add esp, 0x1c
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4910d0
mov ecx, dword [str.Offline_]
mov dword [eax], ecx
mov edx, dword [0x520adc]
mov dword [eax + 4], edx
mov ecx, dword [0x520ae0]
mov dword [eax + 8], ecx
mov edx, dword [0x520ae4]
mov dword [eax + 0xc], edx
mov cx, word [0x520ae8]
mov word [eax + 0x10], cx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004e51cd
add esp, 4
cmp eax, 0xffffffff
jne 0x491127
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004e519b
add esp, 4
mov edx, dword [ebp - 0x1c]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x491130
sub eax, esi
sar eax, 1
lea ecx, [edx + eax*2]
push str.System_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004e51cd
add esp, 0xc
cmp eax, 0xffffffff
jne 0x49116b
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004e519b
add esp, 4
lea ecx, [ebp - 0x24]
push 0x104
push ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], 0x104
call dword [0x566370]
mov eax, dword [ebp - 0x24]
add esp, 8
lea edx, [ebp - 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 0x24]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4911a0
mov edi, dword [ebp - 0x1c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4911b3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4911e0
sub eax, edx
sar eax, 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx edx, word [ebp - 0xa]
movzx ecx, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0xc]
push edx
movzx edx, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push ecx
movzx ecx, word [ebp - 0x16]
push edx
movzx edx, word [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ecx
push edx
lea ecx, [eax + esi*2]
push str._04u__02u__02u__02u__02u__02u__03u__u.off
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x1c]
add esp, 0x28
push 0
push 0x8000080
push 1
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x491276
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov ecx, dword [eax + 0x10]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x20]
push edx
call dword [0x566328]
add esp, 4
lea eax, [ebp - 0x1c]
push 0x104
push eax
call dword [0x566378]
lea ecx, [ebp - 0x24]
push 0x104
push ecx
call dword [0x566378]
push str.Function_End
mov ecx, ebx
call fcn.004a2bf0
mov ecx, dword [ebp - 8]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret