Function at 0x491680
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x20], eax
cmp dword [0x56e250], ebx
jne 0x49171d
mov eax, dword [0x566278]
cmp eax, ebx
je 0x49171d
cmp dword [eax + 0x2c], ebx
jle 0x49171d
push 0x565dd8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x566278]
mov esi, dword [ecx + 0x20]
mov edx, dword [esi + 0x14]
push 0x56e254
add edx, esi
push 0xa0
push esi
mov dword [esi + 0x20], edx
call dword [0x566344]
mov eax, dword [0x56e254]
add esp, 0xc
cmp eax, ebx
jbe 0x491712
cmp dword [0x56e250], ebx
jne 0x491712
push eax
push 0x56e250
call dword [0x566370]
mov eax, dword [0x56e250]
push eax
push 0xa0
push esi
call dword [0x566348]
add esp, 0x14
push 0x565dd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x1c]
push 0x10
push ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], 0x10
call dword [0x566370]
mov eax, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4917ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
push 0x10
push ecx
mov esi, eax
mov dword [ebp - 0x2c], ebx
call dword [0x566370]
mov edx, dword [ebp - 0x2c]
push 0xa
push edx
push esi
call fcn.004e534f
add esp, 0x14
lea eax, [ebp - 0x20]
push 0x104
push eax
mov dword [ebp - 0x20], ebx
call dword [0x566370]
mov ecx, dword [ebp - 0x20]
push str.Connection
push str.fnInitReportAlert__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x2c]
add esp, 0x14
push str.fnInitReportAlert
mov ecx, str.GetComputerName
call fcn.004a3f00
add esp, 4
lea edx, [ebp - 0x1c]
push 0x10
push edx
call dword [0x566378]
lea eax, [ebp - 0x2c]
push 0x10
push eax
call dword [0x566378]
lea ecx, [ebp - 0x20]
push 0x104
push ecx
call dword [0x566378]
add esp, 0x18
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x34]
push 0x104
push edx
mov dword [ebp - 0x34], ebx
call dword [0x566370]
mov ebx, dword [ebp - 0x34]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x104
call fcn.004a5b30
lea eax, [ebp - 0x24]
push 0x410
xor esi, esi
push eax
mov dword [ebp - 0x24], esi
call dword [0x566370]
mov ebx, dword [ebp - 0x24]
push 0x410
call fcn.004b4e50
add esp, 0x14
lea ecx, [ebp - 0x30]
push 0x40
push ecx
mov dword [ebp - 0x30], esi
call dword [0x566370]
add esp, 8
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0xa]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push eax
movzx eax, word [ebp - 0x10]
push ecx
movzx ecx, word [ebp - 0x12]
push edx
movzx edx, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x30]
push edx
push eax
push str._04u__02u__02u__02u__02u__02u__03u__u
push ecx
call ebx
lea edx, [ebp - 0x28]
push 0x104
push edx
mov dword [ebp - 0x28], esi
call dword [0x566370]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
push eax
push ecx
push str.Connection
push str._s__s__s.alt
push edx
call ebx
mov eax, dword [ebp - 0x28]
add esp, 0x44
push eax
push 0x28
push edi
call dword [0x56633c]
add esp, 0xc
push 0x30
push edi
call dword [0x56636c]
push str.Identify
push edi
call dword [0x566340]
push str.Connection
push edi
call dword [0x566340]
push 0x51ca0c
push edi
call dword [0x566340]
push str.PCName
push edi
call dword [0x566340]
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
call dword [0x566340]
push 0x51ca0c
push edi
call dword [0x566340]
push str.UserName
push edi
call dword [0x566340]
mov edx, dword [ebp - 0x34]
add esp, 0x40
push edx
push edi
call dword [0x566340]
push 0x51ca0c
push edi
call dword [0x566340]
push 0x520c38
push edi
call dword [0x566340]
mov eax, dword [ebp - 0x24]
push eax
push edi
call dword [0x566340]
push 0x51ca0c
push edi
call dword [0x566340]
push 0x520c40
push edi
call dword [0x566340]
mov eax, dword [0x56e250]
add esp, 0x30
cmp eax, esi
je 0x491984
push eax
push edi
call dword [0x566340]
add esp, 8
push 0x51ca0c
push edi
call dword [0x566340]
push str.Datetime
push edi
call dword [0x566340]
mov ecx, dword [ebp - 0x20]
push ecx
push edi
call dword [0x566340]
push 0x51ca0c
push edi
call dword [0x566340]
lea edx, [ebp - 0x28]
push 0x104
push edx
call dword [0x566378]
lea eax, [ebp - 0x30]
push 0x40
push eax
call dword [0x566378]
lea ecx, [ebp - 0x24]
push 0x410
push ecx
call dword [0x566378]
lea edx, [ebp - 0x34]
push 0x104
push edx
call dword [0x566378]
add esp, 0x40
lea eax, [ebp - 0x1c]
push 0x10
push eax
call dword [0x566378]
mov ecx, dword [ebp - 8]
add esp, 8
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret