Function at 0x5b3840
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
xor edi, edi
cmp dword [esi], 0xffffffff
jne 0x5b3852
mov dword [esi], ebx
cmp dword [esi + 4], 0xffffffff
jne 0x5b385f
mov dword [esi + 4], 0x1388
cmp dword [esi + 8], 0xffffffff
jne 0x5b386c
mov dword [esi + 8], 4
cmp dword [esi + 0xc], 0xffffffff
jne 0x5b3879
mov dword [esi + 0xc], 1
cmp dword [esi + 0x10], 0xffffffff
jne 0x5b3882
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], 0xffffffff
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_htons]
jne 0x5b3899
push 0x35
call ebp
movzx eax, ax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0xffffffff
jne 0x5b38a9
push 0x35
call ebp
movzx eax, ax
mov dword [esi + 0x18], eax
cmp dword [esi + 0x38], 0xffffffff
jne 0x5b38b6
mov dword [esi + 0x38], 0x500
cmp dword [esi + 0x78], 0xffffffff
jne 0x5b38fc
push 0x58
call dword [0x6ab138]
add esp, 4
mov dword [esi + 0x74], eax
test eax, eax
je 0x5b39d4
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 0x5b39a7
mov ebp, 0x40
mov dword [esi + 0x28], ebx
push ebp
mov dword [esp + 0x18], ebp
call dword [0x6ab138]
mov edi, eax
add esp, 4
test edi, edi
je 0x5b39d4
push ebp
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x5b395f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x5b3963
mov eax, dword [esp + 0x14]
add ebp, ebp
add eax, eax
push eax
push edi
mov dword [esp + 0x1c], eax
call dword [0x6ab13c]
add esp, 8
test eax, eax
je 0x5b39d4
mov edi, eax
jmp 0x5b3926
test eax, eax
je 0x5b3965
mov byte [edi], bl
push 0x2e
push edi
call fcn.005d2a10
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x5b39a7
push 4
call dword [0x6ab138]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x5b39d4
lea eax, [ebp + 1]
push eax
call fcn.005b76d0
mov ecx, dword [esi + 0x24]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
cmp dword [eax], ebx
je 0x5b39d4
mov dword [esi + 0x28], 1
cmp dword [esi + 0x30], 0xffffffff
jne 0x5b39b3
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
cmp dword [esi + 0x34], ebx
jne 0x5b3a74
push 0x6825ac
call fcn.005b76d0
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
jne 0x5b3a74
mov eax, dword [esi + 0x74]
mov ebx, 0xf
test eax, eax
je 0x5b39f1
push eax
call dword [0x6ab140]
add esp, 4
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5b3a08
mov eax, dword [eax]
test eax, eax
je 0x5b3a08
push eax
call dword [0x6ab140]
add esp, 4
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5b3a20
push eax
call dword [0x6ab140]
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5b3a38
push eax
call dword [0x6ab140]
add esp, 4
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x5b3a56
push eax
call dword [0x6ab140]
add esp, 4
mov dword [esi + 0x91c0], 0
mov eax, dword [esi + 0x91c4]
test eax, eax
je 0x5b3a74
push eax
call dword [0x6ab140]
add esp, 4
mov dword [esi + 0x91c4], 0
pop ebp
test edi, edi
je 0x5b3a83
push edi
call dword [0x6ab140]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret