Function at 0x48baa0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c8
push ebx
push esi
push edi
jmp 0x48baca
mov word [ebp - 0x3a8], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x3a6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 0x210], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x5a4], 0
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x5a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x3f8], 0
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x3f7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x564], 0
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x563]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x3cc], 0
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x3cb]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x52c], 0
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x52b]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x508], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x578], 0
xor eax, eax
mov dword [ebp - 0x577], eax
mov dword [ebp - 0x573], eax
mov dword [ebp - 0x56f], eax
mov word [ebp - 0x56b], ax
mov byte [ebp - 0x569], al
mov dword [ebp - 0x214], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x568], 0
cmp dword [ebp + 0xc], 0
je 0x48bbdf
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [ebp - 0x538], 0
jmp 0x48bc08
mov eax, 0
mov dword [ebp - 0x538], eax
cmp dword [ebp - 0x538], 0
jne 0x48bc32
cmp dword [ebp + 0xc], 0
je 0x48bc2b
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
xor al, al
jmp 0x48c268
mov ecx, 0x80
mov esi, dword [ebp - 0x538]
lea edi, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
pushal
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [ebp - 8], eax
popal
mov dword [ebp - 0x3fc], 0
jmp 0x48bc6e
mov eax, dword [ebp - 0x3fc]
add eax, 4
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0x200
jge 0x48bc99
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp + ecx - 0x210]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0x3fc]
mov dword [ebp + eax - 0x210], edx
jmp 0x48bc5f
mov ecx, 0xa
lea esi, [ebp - 0x210]
lea edi, [ebp - 0x5a4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x1e4]
mov ecx, 0xd
mov edi, 0x52e1b8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1ac]
mov dword [0x52e1f0], ecx
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x568], edx
lea esi, [ebp - 0x1a4]
mov ecx, 0xa
lea edi, [ebp - 0x3f8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x178]
mov ecx, 0xa
lea edi, [ebp - 0x564]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x14c]
mov ecx, 8
lea edi, [ebp - 0x3cc]
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 0x120]
mov byte [ebp - 0x52d], al
mov ecx, dword [ebp - 0x52d]
and ecx, 0xff
test ecx, ecx
je 0x48bd6e
mov edx, dword [ebp - 0x52d]
and edx, 0xff
cmp edx, 0x20
jg 0x48bd6e
mov ecx, dword [ebp - 0x52d]
and ecx, 0xff
lea esi, [ebp - 0x11f]
lea edi, [ebp - 0x52c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xff]
mov edx, dword [ecx]
mov dword [0x52e1f4], edx
mov eax, dword [ecx + 4]
mov dword [0x52e1f8], eax
mov edx, dword [ecx + 8]
mov dword [0x52e1fc], edx
mov eax, dword [ecx + 0xc]
mov dword [0x52e200], eax
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x3a8]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x48bdd0
cmp dword [ebp + 0xc], 0
je 0x48bdc9
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xfffffffe
xor al, al
jmp 0x48c268
jmp 0x48bdef
mov eax, dword [ebp + 8]
mov dword [0x52e1a4], eax
jmp 0x48be13
push 0x52e1b8
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x48be3d
cmp dword [ebp + 0xc], 0
je 0x48be36
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xfffffffd
xor al, al
jmp 0x48c268
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
je 0x48be5f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x52e198], eax
mov word [0x52e194], 2
mov ax, word [0x52e1f0]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x52e196], ax
mov ecx, 0x52e130
call fcn.0048daa0
lea edi, [ebp - 0x3cc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea ecx, [ebp - 0x3cc]
push ecx
mov ecx, 0x52e130
call fcn.0048db80
push 0x10
push 0x4f57b0
mov ecx, 0x52e130
call fcn.0048dd50
push eax
mov ecx, 0x52e130
call fcn.0048dd40
push eax
call fcn.004897f0
add esp, 0x10
mov ecx, 8
mov eax, 0xfefefefe
lea edi, [ebp - 0x3cc]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x52e0d8
call fcn.0048daa0
lea edi, [ebp - 0x5a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea edx, [ebp - 0x5a4]
push edx
mov ecx, 0x52e0d8
call fcn.0048db80
push 0x10
push 0x4f57b0
mov ecx, 0x52e0d8
call fcn.0048dd50
push eax
mov ecx, 0x52e0d8
call fcn.0048dd40
push eax
call fcn.004897f0
add esp, 0x10
mov ecx, 0xb
mov eax, 0xfefefefe
lea edi, [ebp - 0x5a4]
rep stosd dword es:[edi], eax
mov ecx, 0x52e124
call fcn.0048daa0
cmp dword [ebp - 0x568], 2
jne 0x48bfb4
lea edi, [ebp - 0x3f8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea eax, [ebp - 0x3f8]
push eax
mov ecx, 0x52e124
call fcn.0048db80
push 0x10
push 0x4f57b0
mov ecx, 0x52e124
call fcn.0048dd50
push eax
mov ecx, 0x52e124
call fcn.0048dd40
push eax
call fcn.004897f0
add esp, 0x10
mov ecx, 0xb
mov eax, 0xfefefefe
lea edi, [ebp - 0x3f8]
rep stosd dword es:[edi], eax
mov ecx, 0x52e0e4
call fcn.0048daa0
cmp dword [ebp - 0x568], 2
jne 0x48c022
lea edi, [ebp - 0x564]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea ecx, [ebp - 0x564]
push ecx
mov ecx, 0x52e0e4
call fcn.0048db80
push 0x10
push 0x4f57b0
mov ecx, 0x52e0e4
call fcn.0048dd50
push eax
mov ecx, 0x52e0e4
call fcn.0048dd40
push eax
call fcn.004897f0
add esp, 0x10
mov ecx, 0xb
mov eax, 0xfefefefe
lea edi, [ebp - 0x564]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x215], 0
mov ecx, 0x52e108
call fcn.0048dd50
test eax, eax
je 0x48c04e
jmp 0x48c0ed
lea edx, [ebp - 0x508]
push edx
call fcn.0048c2c0
add esp, 4
lea edi, [ebp - 0x508]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
mov byte [ebp - 0x215], cl
mov eax, dword [ebp - 0x215]
and eax, 0xff
cmp eax, 0xfe
jle 0x48c08e
mov byte [ebp - 0x215], 0xfe
mov ecx, 0x52e108
call fcn.0048daa0
mov ecx, dword [ebp - 0x215]
and ecx, 0xff
push ecx
lea edx, [ebp - 0x508]
push edx
mov ecx, 0x52e108
call fcn.0048db80
push 0x10
push 0x4f57b0
mov ecx, 0x52e108
call fcn.0048dd50
push eax
mov ecx, 0x52e108
call fcn.0048dd40
push eax
call fcn.004897f0
add esp, 0x10
mov ecx, 0x41
mov eax, 0xfefefefe
lea edi, [ebp - 0x508]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x578]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dl, byte [ebp - 4]
mov byte [ebp - 0x215], dl
mov eax, dword [ebp - 0x215]
and eax, 0xff
cmp eax, 0xfe
jle 0x48c127
mov byte [ebp - 0x215], 0xfe
mov ecx, 0x52e0fc
call fcn.0048daa0
mov ecx, dword [ebp - 0x215]
and ecx, 0xff
push ecx
lea edx, [ebp - 0x578]
push edx
mov ecx, 0x52e0fc
call fcn.0048db80
push 0x10
push 0x4f57b0
mov ecx, 0x52e0fc
call fcn.0048dd50
push eax
mov ecx, 0x52e0fc
call fcn.0048dd40
push eax
call fcn.004897f0
add esp, 0x10
mov eax, 0xfefefefe
mov dword [ebp - 0x578], eax
mov dword [ebp - 0x574], eax
mov dword [ebp - 0x570], eax
mov dword [ebp - 0x56c], eax
mov ecx, 0x52e0f0
call fcn.0048daa0
lea edi, [ebp - 0x52c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
push ecx
lea ecx, [ebp - 0x52c]
push ecx
mov ecx, 0x52e0f0
call fcn.0048db80
push 0x10
push 0x4f57b0
mov ecx, 0x52e0f0
call fcn.0048dd50
push eax
mov ecx, 0x52e0f0
call fcn.0048dd40
push eax
call fcn.004897f0
add esp, 0x10
mov ecx, 8
mov eax, 0xfefefefe
lea edi, [ebp - 0x52c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x534], 0
mov ecx, 0x52e13c
call fcn.0048c280
lea edx, [ebp - 0x534]
push edx
mov eax, dword [ebp - 0x568]
push eax
call fcn.0048b130
add esp, 8
and eax, 0xff
test eax, eax
je 0x48c238
mov ecx, 0x52e13c
call fcn.0048c2b0
mov al, 1
jmp 0x48c268
mov ecx, 0x52e13c
call fcn.0048c2b0
cmp dword [ebp + 0xc], 0
je 0x48c253
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x534]
mov dword [ecx], edx
jmp 0x48c266
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8