Function at 0x10192690
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi], 0xffffffff
jne 0x101926a2
mov dword [edi], ebx
cmp dword [edi + 4], 0xffffffff
jne 0x101926af
mov dword [edi + 4], 0x1388
cmp dword [edi + 8], 0xffffffff
jne 0x101926bc
mov dword [edi + 8], 4
cmp dword [edi + 0xc], 0xffffffff
jne 0x101926c9
mov dword [edi + 0xc], 1
cmp dword [edi + 0x10], 0xffffffff
jne 0x101926d2
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 0xffffffff
mov esi, dword [sym.imp.WS2_32.dll_htons]
jne 0x101926e8
push 0x35
call esi
movzx eax, ax
mov dword [edi + 0x14], eax
cmp dword [edi + 0x18], 0xffffffff
jne 0x101926f8
push 0x35
call esi
movzx eax, ax
mov dword [edi + 0x18], eax
cmp dword [edi + 0x38], 0xffffffff
jne 0x10192705
mov dword [edi + 0x38], 0x500
cmp dword [edi + 0x78], 0xffffffff
jne 0x1019274b
push 0x58
call dword [0x1026eabc]
add esp, 4
mov dword [edi + 0x74], eax
test eax, eax
je 0x10192824
push 0x7f000001
mov dword [eax], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [edi + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x74]
mov dword [eax + 0x14], ebx
mov eax, dword [edi + 0x74]
mov dword [eax + 0x18], ebx
mov dword [edi + 0x78], 1
cmp dword [edi + 0x28], 0xffffffff
jne 0x101927f6
mov esi, 0x40
mov dword [edi + 0x28], ebx
push esi
mov dword [ebp + 8], esi
call dword [0x1026eabc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10192824
push esi
push ebx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x101927ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x101927af
mov eax, dword [ebp + 8]
add esi, esi
add eax, eax
push eax
push ebx
mov dword [ebp + 8], eax
call dword [0x1026eac0]
add esp, 8
test eax, eax
je 0x10192824
mov ebx, eax
jmp 0x10192774
test eax, eax
je 0x101927b2
mov byte [ebx], 0
push 0x2e
push ebx
call fcn.100e2630
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x101927f6
push 4
call dword [0x1026eabc]
add esp, 4
mov dword [edi + 0x24], eax
test eax, eax
je 0x10192824
mov esi, eax
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.101966e0
mov dword [esi], eax
add esp, 4
mov eax, dword [edi + 0x24]
cmp dword [eax], 0
je 0x10192824
mov dword [edi + 0x28], 1
cmp dword [edi + 0x30], 0xffffffff
jne 0x1019280a
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
cmp dword [edi + 0x34], 0
jne 0x1019288a
push 0x101e4c30
call fcn.101966e0
add esp, 4
mov dword [edi + 0x34], eax
test eax, eax
jne 0x1019288a
mov eax, dword [edi + 0x74]
test eax, eax
je 0x1019283c
push eax
call dword [0x1026eac4]
add esp, 4
mov dword [edi + 0x74], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1019286b
mov ecx, dword [eax]
test ecx, ecx
je 0x10192856
push ecx
call dword [0x1026eac4]
mov eax, dword [edi + 0x24]
add esp, 4
test eax, eax
je 0x1019286b
push eax
call dword [0x1026eac4]
add esp, 4
mov dword [edi + 0x24], 0
mov eax, dword [edi + 0x34]
mov esi, 0xf
test eax, eax
je 0x1019288c
push eax
call dword [0x1026eac4]
add esp, 4
mov dword [edi + 0x34], 0
jmp 0x1019288c
xor esi, esi
test ebx, ebx
je 0x1019289a
push ebx
call dword [0x1026eac4]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret