Function at 0x4470dd
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x3cc], eax
xor eax, eax
push 0x18e
mov word [ebp - 0x3c8], ax
xor ebx, ebx
lea eax, [ebp - 0x3c6]
push ebx
push eax
mov esi, ecx
call fcn.00401f80
mov edi, 0x103
push edi
lea eax, [ebp - 0x11f]
push ebx
push eax
mov byte [ebp - 0x120], bl
call fcn.00401f80
push edi
lea eax, [ebp - 0x227]
push ebx
push eax
mov byte [ebp - 0x228], bl
call fcn.00401f80
xor eax, eax
mov word [ebp - 0x238], ax
lea edi, [ebp - 0x236]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
stosw word es:[edi], ax
mov dword [ebp - 0x3d0], ebx
cmp dword [ebp + 0xc], ebx
jge 0x447171
mov dword [ebp + 0xc], 0x104
cmp dword [ebp - 0x3cc], ebx
je 0x447359
cmp esi, ebx
je 0x447359
cmp dword [ebp + 0xc], ebx
jle 0x447359
call fcn.004182de
push dword [ebp - 0x3cc]
mov ecx, 0x102
lea eax, [ebp - 0x120]
call fcn.00428a08
lea eax, [ebp - 0x228]
call fcn.00428a82
mov edi, 0x472e90
push edi
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0x120]
call fcn.0042903f
pop ecx
pop ecx
mov dword [ebp - 0x3cc], eax
cmp eax, ebx
je 0x4471ec
push edi
lea eax, [ebp - 0x3d0]
xor ecx, ecx
call fcn.0042903f
pop ecx
mov dword [ebp - 0x3cc], eax
mov edx, dword [ebp - 0x3cc]
call fcn.00429ac3
test eax, eax
jne 0x447222
push dword [ebp - 0x3cc]
mov ecx, 0x104
lea eax, [ebp - 0x228]
call fcn.00428a08
push 0x3a
xor eax, eax
lea edi, [ebp - 0x228]
call fcn.004286af
pop ecx
pop ecx
mov edi, 0x57a670
mov edx, edi
call fcn.00429ac3
test eax, eax
jne 0x44725b
lea eax, [ebp - 0x120]
push 0x57a568
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
jne 0x44725b
push edi
mov ecx, 0x104
lea eax, [ebp - 0x120]
call fcn.00428a08
pop ecx
lea eax, [ebp - 0x120]
push eax
mov byte [esi], bl
call fcn.004478ea
pop ecx
test eax, eax
je 0x44729e
lea ebx, [ebp - 0x120]
call fcn.00446e33
mov ecx, dword [ebp + 0xc]
mov eax, ebx
push eax
mov eax, esi
call fcn.00428a08
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00429a82
pop ecx
pop ecx
mov eax, esi
jmp 0x44735b
lea eax, [ebp - 0x3c8]
push eax
push 0x101
mov byte [esi], bl
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x447359
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
cmp ecx, ebx
je 0x447327
movzx edx, word [ecx + 0xa]
cmp dx, bx
jle 0x447327
xor eax, eax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
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 - 0x234]
push eax
call fcn.00401330
push dword [ebp - 0x234]
lea eax, [ebp - 0x18]
mov byte [esi], bl
call fcn.00446dc6
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.00428a08
push esi
xor edi, edi
call fcn.004478ea
add esp, 0x18
test eax, eax
jne 0x44732a
or edi, 0xffffffff
call dword [sym.imp.WSOCK32.dll_WSACleanup]
cmp edi, ebx
jne 0x447359
push esi
call fcn.00401a80
pop ecx
test eax, eax
je 0x447359
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00429a82
pop ecx
call fcn.004182de
jmp 0x447297
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret