Function at 0x47a030
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
cmp dword [esi], 0xffffffff
jne 0x47a045
mov dword [esi], ebx
cmp dword [esi + 4], 0xffffffff
jne 0x47a052
mov dword [esi + 4], 0x1388
cmp dword [esi + 8], 0xffffffff
jne 0x47a05f
mov dword [esi + 8], 4
cmp dword [esi + 0xc], 0xffffffff
jne 0x47a06c
mov dword [esi + 0xc], 1
cmp dword [esi + 0x10], 0xffffffff
jne 0x47a075
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 0xffffffff
mov eax, dword [sym.imp.WS2_32.dll_htons]
jne 0x47a08f
push 0x35
call eax
movzx eax, ax
mov dword [esi + 0x14], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x18], 0xffffffff
jne 0x47a09f
push 0x35
call eax
movzx eax, ax
mov dword [esi + 0x18], eax
cmp dword [esi + 0x38], 0xffffffff
jne 0x47a0ac
mov dword [esi + 0x38], 0x500
cmp dword [esi + 0x78], 0xffffffff
jne 0x47a0f2
push 0x58
call dword [0x501144]
add esp, 4
mov dword [esi + 0x74], eax
test eax, eax
je 0x47a1d8
push 0x7f000001
mov dword [eax], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x74]
mov dword [eax + 0x14], ebx
mov eax, dword [esi + 0x74]
mov dword [eax + 0x18], ebx
mov dword [esi + 0x78], 1
cmp dword [esi + 0x28], 0xffffffff
jne 0x47a1ab
push 0x40
mov dword [ebp + 8], 0x40
mov dword [ebp - 4], 0x40
mov dword [esi + 0x28], ebx
call dword [0x501144]
mov edi, eax
add esp, 4
test edi, edi
je 0x47a1d8
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x47a161
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x47a165
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add ecx, ecx
push ecx
add eax, eax
mov dword [ebp - 4], ecx
push edi
mov dword [ebp + 8], eax
call dword [0x501148]
add esp, 8
test eax, eax
je 0x47a1d8
mov edi, eax
jmp 0x47a122
test eax, eax
je 0x47a167
mov byte [edi], bl
push 0x2e
push edi
call fcn.0049cae0
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x47a1ab
push 4
call dword [0x501144]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x47a1d8
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.0047e2c0
mov ecx, dword [esi + 0x24]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
cmp dword [eax], ebx
je 0x47a1d8
mov dword [esi + 0x28], 1
cmp dword [esi + 0x30], 0xffffffff
jne 0x47a1b7
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x34], ebx
jne 0x47a25a
push 0x4e6e08
call fcn.0047e2c0
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
jne 0x47a25a
mov eax, dword [esi + 0x74]
mov ebx, 0xf
test eax, eax
je 0x47a1f5
push eax
call dword [0x50114c]
add esp, 4
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x47a20c
mov eax, dword [eax]
test eax, eax
je 0x47a20c
push eax
call dword [0x50114c]
add esp, 4
mov eax, dword [esi + 0x24]
test eax, eax
je 0x47a224
push eax
call dword [0x50114c]
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x47a23c
push eax
call dword [0x50114c]
add esp, 4
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x47a25a
push eax
call dword [0x50114c]
add esp, 4
mov dword [esi + 0x91c0], 0
test edi, edi
je 0x47a268
push edi
call dword [0x50114c]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret