Function at 0x46bde5
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x46bde5
push ebp
lea ebp, [esp - 0x350]
sub esp, 0x3d0
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x34c], eax
mov eax, dword [ebp + 0x358]
push ebx
push esi
mov esi, dword [ebp + 0x35c]
push edi
xor ebx, ebx
push 0x18e
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.00508d00
mov edi, 0x103
push edi
lea eax, [ebp + 0x235]
push ebx
push eax
mov byte [ebp + 0x234], bl
call fcn.00508d00
push edi
lea eax, [ebp + 0x131]
push ebx
push eax
mov byte [ebp + 0x130], bl
call fcn.00508d00
xor eax, eax
mov word [ebp + 0x120], bx
lea edi, [ebp + 0x122]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
cmp dword [ebp + 0x360], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x7c], ebx
jge 0x46be80
mov dword [ebp + 0x360], 0x104
cmp dword [ebp - 0x74], ebx
je 0x46c0f3
cmp esi, ebx
je 0x46c0f3
cmp dword [ebp + 0x360], ebx
jle 0x46c0f3
call fcn.00401e97
push 0x102
push dword [ebp - 0x74]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x234]
push eax
call fcn.00402abd
lea eax, [ebp + 0x130]
push eax
call fcn.00401ff5
lea eax, [ebp - 0x7c]
push eax
mov edi, 0x5a0354
lea eax, [ebp + 0x234]
push edi
push eax
call fcn.004019d3
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x46bef6
lea eax, [ebp - 0x7c]
push eax
push edi
push ebx
call fcn.004019d3
add esp, 0xc
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
call fcn.004010dc
test eax, eax
pop ecx
jne 0x46bf29
push 0x104
push dword [ebp - 0x78]
lea eax, [ebp + 0x130]
push eax
call fcn.00402abd
push ebx
lea eax, [ebp + 0x130]
push 0x3a
push eax
call fcn.004025ea
add esp, 0x18
mov edi, 0x742f30
push edi
call fcn.004010dc
test eax, eax
pop ecx
jne 0x46bf79
lea eax, [ebp + 0x234]
push 0x742e28
push eax
call fcn.0050da80
test eax, eax
pop ecx
pop ecx
jne 0x46bf79
push 0x104
lea eax, [ebp + 0x234]
push edi
push eax
call fcn.00402abd
lea eax, [ebp + 0x234]
push eax
push dword [ebp - 0x74]
push str.:2:ResolveHostNameToIP___s___is_using___s__instead_
call fcn.00401375
add esp, 0x18
lea eax, [ebp + 0x234]
push eax
mov byte [esi], bl
call fcn.0040321a
test eax, eax
pop ecx
je 0x46bfc8
lea eax, [ebp + 0x234]
push eax
call fcn.00402ac2
push dword [ebp + 0x360]
lea eax, [ebp + 0x234]
push eax
push esi
call fcn.00402abd
push dword [ebp + 0x360]
lea eax, [ebp + 0x130]
push eax
push esi
call fcn.00402365
add esp, 0x1c
mov eax, esi
jmp 0x46c0f5
lea eax, [ebp - 0x70]
push eax
push 0x101
mov byte [esi], bl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x46c0f3
lea eax, [ebp + 0x234]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, eax
cmp ecx, ebx
je 0x46c094
movzx edx, word [ecx + 0xa]
cmp dx, bx
jle 0x46c094
xor eax, eax
mov byte [ebp + 0x338], bl
lea edi, [ebp + 0x339]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, dx
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp + 0x124]
push eax
call fcn.00507fb0
lea eax, [ebp + 0x338]
push eax
push dword [ebp + 0x124]
mov byte [esi], bl
call fcn.00402b3f
push dword [ebp + 0x360]
lea eax, [ebp + 0x338]
push eax
push esi
call fcn.00402abd
push esi
xor edi, edi
call fcn.0040321a
add esp, 0x24
test eax, eax
jne 0x46c097
movzx eax, byte [ebp + 0x127]
push esi
push eax
movzx eax, byte [ebp + 0x126]
push eax
movzx eax, byte [ebp + 0x125]
push eax
movzx eax, byte [ebp + 0x124]
push eax
push dword [ebp - 0x74]
push str.:9:ResolveHostNameToIP__s__FAILED:_IP_InAddrToA__d._d._d._d__parsed_to__s
call fcn.004020c2
add esp, 0x1c
or edi, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
cmp edi, ebx
jne 0x46c0f3
push esi
call fcn.00508320
test eax, eax
pop ecx
jbe 0x46c0f3
push dword [ebp + 0x360]
lea eax, [ebp + 0x130]
push eax
push esi
call fcn.00402365
add esp, 0xc
call fcn.00401e97
sub eax, dword [ebp - 0x80]
cmp eax, 0xfa0
jbe 0x46bfc1
call fcn.00401e97
sub eax, dword [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x74]
push str.:4:ResolveHostNameToIP___took_too_long_to_resolve__s_to__s:__ums
call fcn.004020c2
add esp, 0x10
jmp 0x46bfc1
xor eax, eax
mov ecx, dword [ebp + 0x34c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x350
leave
ret