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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45bba0
push 0x439ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c4
mov eax, dword [0x45f478]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c8], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push eax
call fcn.0040d3c0
add esp, 4
lea eax, [ebp - 0x7b8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
je 0x404e0e
push 0xe000003c
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.WSAStartup
lea eax, [ebp - 0x628]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
add edi, 0xffffd8e2
cmp edi, 0x4e
ja case.0x404db5.10015
movzx eax, byte [edi + 0x4050d4]
jmp dword [eax*4 + 0x4050bc]
push str.WSASYSNOTREADY_:_Network_subsystem_is_unavailable.
jmp 0x404de4
push str.WSAVERNOTSUPPORTED_:_Winsock.dll_version_out_of_range.
jmp 0x404de4
push str.WSAEINPROGRESS_:_Operation_now_in_progress.
jmp 0x404de4
push str.WSAEPROCLIM_:_Too_many_processes.
jmp 0x404de4
push str.WSAEFAULT_:_Bad_address.
jmp 0x404de4
push str.unidentified_return_code
lea eax, [ebp - 0x528]
push eax
call esi
mov ebx, 1
mov word [ebp - 0x128], bx
push 0
push 0
push 0
push 0x60000001
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
call edi
jmp 0x404e1a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x7b8]
cmp al, 2
jne 0x404e33
shr eax, 8
cmp al, 2
jne 0x404e33
mov ebx, dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x404e7b
mov ebx, dword [sym.imp.WS2_32.dll_WSACleanup]
call ebx
push 0xe000003c
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.WSAStartup
lea eax, [ebp - 0x628]
push eax
call esi
push str.Could_not_find_a_usable_WinSock_DLL.
lea eax, [ebp - 0x528]
push eax
call esi
mov eax, 1
mov word [ebp - 0x128], ax
push 0
push 0
push 0
push 0x60000001
call edi
mov eax, 2
mov word [ebp - 0x128], ax
mov byte [ebp - 0x124], 0
push 0x104
push 0
lea eax, [ebp - 0x123]
push eax
call fcn.0043a6b0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x404ed7
call ebx
push str.gethostname
lea eax, [ebp - 0x628]
push eax
call esi
push 0
push 0
push 0
push 0x60000001
call edi
mov dword [ebp - 0x7c4], 0
lea eax, [ebp - 0x7c4]
push eax
push 0
push 0
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x404f1a
call ebx
push 0x44a92c
lea eax, [ebp - 0x628]
push eax
call esi
push 0
push 0
push 0
push 0x60000001
call edi
mov esi, dword [ebp - 0x7c4]
xor edi, edi
mov dword [ebp - 0x7cc], edi
xor ebx, ebx
mov dword [ebp - 0x7d4], ebx
test esi, esi
je 0x404f55
inc edi
mov dword [ebp - 0x7cc], edi
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, eax
mov esi, dword [esi + 0x1c]
jmp 0x404f2a
mov ax, word [0x44a938]
mov word [ebp - 0x7c0], ax
mov al, byte [0x44a93a]
mov byte [ebp - 0x7be], al
lea eax, [ebp - 0x7c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
imul eax, edi
lea esi, [ebx + 1]
add esi, eax
push esi
call fcn.004380a8
mov ecx, dword [ebp - 0x7c8]
mov dword [ecx], eax
push esi
push 0
push eax
call fcn.0043a6b0
add esp, 0x10
mov esi, dword [ebp - 0x7c4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, edi
test esi, esi
je 0x404fdd
mov eax, dword [esi + 0x18]
push dword [eax + 4]
call edi
push eax
mov eax, dword [ebp - 0x7c8]
push dword [eax]
call ebx
lea eax, [ebp - 0x7c0]
push eax
mov eax, dword [ebp - 0x7c8]
push dword [eax]
call ebx
mov esi, dword [esi + 0x1c]
jmp 0x404fb0
push dword [ebp - 0x7c4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
jmp 0x405093
mov byte [ebp - 0x7b9], al
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00439a01
mov esp, ebp
pop ebp
ret