Function at 0x528530
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3f08
mov eax, dword fs:[0]
push eax
sub esp, 0xa24
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0xa2c], esi
cmp byte [esi + 0x2ac], bl
je 0x5287bf
cmp byte [esi + 0x74], bl
jne 0x5287bf
cmp dword [esi + 0x64], ebx
je 0x5287bf
lea eax, [ebp - 0xa20]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x5287bf
push 9
push str.LocalHost
lea ecx, [esi + 0x278]
call fcn.00422130
push 0x7f
lea ecx, [ebp - 0x8f]
push ebx
push ecx
mov byte [ebp - 0x90], bl
call fcn.0055aed0
add esp, 0xc
push 0x7f
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x90]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5285e3
sub eax, ecx
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [esi + 0x278]
call fcn.00422130
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
lea ecx, [esi + 0x44]
push eax
push edx
lea edx, [ebp - 0xa24]
push edx
call fcn.00527690
push 0x7ff
lea eax, [ebp - 0x88f]
push ebx
push eax
mov byte [ebp - 0x890], bl
call fcn.0055aed0
lea eax, [esi + 0x54]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x52863c
mov eax, dword [eax]
push 0x7ff
push eax
lea ecx, [ebp - 0x890]
push ecx
call fcn.0055d360
add esp, 0xc
mov byte [ebp - 0x91], bl
lea edi, [ebp - 0x890]
cmp byte [ebp - 0x890], bl
je 0x5287bb
jmp 0x528676
mov edi, dword [ebp - 0xa30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 1
mov edx, 2
push 0x202
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], dx
call dword [sym.imp.WS2_32.dll_htons]
push 0x2c
push edi
mov word [ebp - 0x3a], ax
call fcn.0055c890
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x5286de
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5286d0
sub eax, edx
lea esi, [eax + edi]
jmp 0x5286e1
mov byte [esi], bl
inc esi
push 0x3a
push edi
mov dword [ebp - 0xa24], edi
mov dword [ebp - 0xa30], esi
call fcn.0055c890
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x52874f
push 0xa
lea eax, [ebp - 0xa28]
push eax
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0xa28], ebx
call fcn.0055b7e7
movzx eax, ax
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0xa28]
push str._tcp
push edx
mov word [ebp - 0x3a], ax
call fcn.00559e6a
add esp, 8
test eax, eax
jne 0x52874d
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 6
mov byte [edi], bl
mov edi, dword [ebp - 0xa24]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x528760
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00422130
mov ecx, dword [ebp - 0xa2c]
lea eax, [ebp - 0x50]
or edi, 0xffffffff
push eax
add ecx, 0x44
mov dword [ebp - 0x4c], edi
call fcn.00528150
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 0x10
jb 0x5287a0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00558723
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp byte [esi], bl
jne 0x528670
mov esi, dword [ebp - 0xa2c]
mov byte [esi + 0x74], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret