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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5322a8]
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.004a4c50
mov eax, dword [ebx + 0x18]
add esp, 4
add eax, 0x40
push eax
lea ecx, [ebp - 0x20]
push 0x30
push ecx
call dword [0x539360]
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 [0x53939c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x18]
add ecx, dword [eax + 0x14]
lea edx, [ebp - 0x1c]
push 0x104
mov dword [eax + 0x10], ecx
xor edi, edi
push edx
mov dword [ebp - 0x1c], edi
call dword [0x5393b0]
mov esi, dword [ebp - 0x1c]
push edi
call fcn.004a5de0
mov eax, dword [ebp - 0x1c]
add esp, 0x1c
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x492c43
mov ecx, dword [str.Offline_]
mov dword [eax], ecx
mov edx, dword [0x521324]
mov dword [eax + 4], edx
mov ecx, dword [0x521328]
mov dword [eax + 8], ecx
mov edx, dword [0x52132c]
mov dword [eax + 0xc], edx
mov cx, word [0x521330]
mov word [eax + 0x10], cx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004e447d
add esp, 4
cmp eax, 0xffffffff
jne 0x492c9a
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004e444b
add esp, 4
lea ecx, [ebp - 0x24]
push 0x104
push ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], 0x104
call dword [0x5393b0]
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 esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x492cd0
mov edi, dword [ebp - 0x1c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x492ce3
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 0x492d10
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 0x492da6
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 [0x539368]
add esp, 4
lea eax, [ebp - 0x1c]
push 0x104
push eax
call dword [0x5393b8]
lea ecx, [ebp - 0x24]
push 0x104
push ecx
call dword [0x5393b8]
push str.Function_End
mov ecx, ebx
call fcn.004a4c50
mov ecx, dword [ebp - 8]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret