Function at 0x49bab0
Capabilities:
Get hostname
Get session user name
Resolve dns
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x581eec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.00506a80
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x428], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5f3788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x32]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x64], ebx
mov dword [edx + 0x68], ebx
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0x10], ebx
call fcn.0043c030
mov edx, dword [esp + 0x434]
mov ecx, dword [esp + 0x430]
or esi, 0xffffffff
push edx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x8c], ecx
call sub.WSOCK32.dll_htons
and eax, 0xffff
mov edi, 0x5f3788
mov dword [ebp + 0x90], eax
mov eax, dword [esp + 0x438]
mov dword [ebp + 0x18], eax
mov ecx, esi
xor eax, eax
lea edx, [ebp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x430]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x49bc5e
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x49bc5e
cmp dword [eax + 0x1d4], ebx
je 0x49bbe0
mov ecx, dword [eax + 0x1d8]
cmp ecx, ebx
je 0x49bbe0
push ecx
call sub.WSOCK32.dll_htonl
jmp 0x49bc3f
cmp eax, ebx
je 0x49bc5e
cmp dword [eax + 0x1dc], ebx
je 0x49bc5e
lea edi, [eax + 0x1e0]
mov esi, 0x5f3788
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x49bc1d
test cl, cl
je 0x49bc19
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x49bc1d
add eax, 2
add esi, 2
test cl, cl
jne 0x49bbf9
xor eax, eax
jmp 0x49bc22
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x49bc5e
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edi
call sub.MFC42.DLL_CString::CString_3
call fcn.00442c40
add esp, 4
cmp eax, ebx
je 0x49bc5e
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x8c], eax
mov dword [ecx + 0x504c], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x504c]
mov dword [esp + 0x430], eax
mov edi, dword [ebp + 0x18]
xor edx, edx
cmp edi, ebx
lea ecx, [esp + 0x430]
setne dl
push ecx
push edx
mov ecx, ebp
call fcn.0049bfa0
test eax, eax
je 0x49bf32
lea eax, [esp + 0x18]
lea ebx, [ebp + 0x5a]
push eax
push ebx
mov dword [esp + 0x20], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x49bcae
push eax
push str.GetComputerName__
call fcn.0043c440
add esp, 8
jmp 0x49bf32
mov eax, dword [esp + 0x430]
test eax, eax
jne 0x49be07
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x49bdb6
mov ecx, dword [eax + 0x1d4]
test ecx, ecx
je 0x49bcf6
mov ecx, dword [eax + 0x1d8]
test ecx, ecx
je 0x49bcf6
push ecx
call sub.WSOCK32.dll_htonl
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x8c], eax
mov dword [ecx + 0x504c], eax
jmp 0x49be07
test eax, eax
je 0x49bdb6
mov ecx, dword [eax + 0x1dc]
test ecx, ecx
je 0x49bdb6
lea edi, [eax + 0x1e0]
mov esi, 0x5f3788
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x49bd3d
test cl, cl
je 0x49bd39
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x49bd3d
add eax, 2
add esi, 2
test cl, cl
jne 0x49bd19
xor eax, eax
jmp 0x49bd42
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x49bdb6
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edi
call sub.MFC42.DLL_CString::CString_3
call fcn.00442c40
add esp, 4
test eax, eax
jne 0x49bda5
lea eax, [esp + 0x20]
push 0x400
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x49bd95
or ecx, eax
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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, [esp + 0x20]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x49be07
jmp 0x49bdfa
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x8c], eax
mov dword [edx + 0x504c], eax
jmp 0x49be07
lea eax, [esp + 0x20]
push 0x400
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x49bdec
or ecx, eax
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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, [esp + 0x20]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x49be07
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 0x8c], ecx
lea edx, [esp + 0x18]
lea eax, [ebp + 0x28]
push edx
push eax
mov dword [esp + 0x20], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ebx, 1
cmp eax, ebx
je 0x49be3a
push 0x32
lea eax, [ebp + 0x28]
push 0x5e8f08
push eax
call fcn.0043bab0
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
mov ecx, dword [ebp + 0x18]
xor eax, eax
test ecx, ecx
mov byte [esp + 0x428], bl
je 0x49be59
mov eax, dword [ecx + 0x1f4]
push eax
mov eax, dword [ebp + 0x8c]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00442440
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 2
call fcn.00572d3c
lea ecx, [esp + 0x10]
mov byte [esp + 0x428], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
cmp eax, 0xc
jle 0x49bece
lea eax, [esp + 0x10]
push 0xc
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 3
call fcn.00572d3c
lea ecx, [esp + 0x10]
mov byte [esp + 0x428], bl
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ebx
test eax, eax
je 0x49bf0b
mov eax, dword [eax + 0x1fc]
push eax
call sub.WSOCK32.dll_ntohl
jmp 0x49bf1b
push str.226.81.9.8
call sub.WSOCK32.dll_inet_addr
push eax
call sub.WSOCK32.dll_htonl
lea ecx, [esp + 0x14]
mov dword [ebp + 0xa4], eax
mov byte [esp + 0x428], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x420]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x41c
ret 0xc