Function at 0x4226c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
xor eax, eax
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor esi, esi
lea ebx, [ebp + 8]
mov ecx, 0x53
mov edi, ebx
mov dword [ebp + 0x154], esi
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x160]
mov ecx, 0x40
mov dword [ebp + 0x15c], esi
mov dword [ebp + 0x158], esi
cmp edx, esi
rep stosd dword es:[edi], eax
jbe 0x4227cb
cmp edx, 4
ja 0x4227cb
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
mov dword [ebx], edx
lea esi, [ebp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x2c], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov dword [ebp + 0x150], 0
mov dword [ebp + 0x10c], ecx
je 0x422755
cmp edx, 1
jne 0x4227cd
mov esi, dword [esp + 0x38]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4227cd
lea eax, [ebp + 0x110]
mov edi, esi
mov dword [esp + 0x2c], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
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, dword [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp + 0x130]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x2c], esi
mov esi, edi
mov edi, dword [esp + 0x2c]
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 [ebp + 0x150], 1
jmp 0x4227cd
mov dword [ebx], esi
test edx, edx
jne 0x4227ec
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov ecx, ebp
call fcn.004223d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x1c
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x422818
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x422848
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov esi, dword [ecx]
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [ebp + 0x10c]
lea ecx, [ebp + 0xc]
push eax
push ecx
mov ecx, ebp
call fcn.004223d0
test eax, eax
jne 0x4228a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x1c
mov ebx, dword [ebx]
cmp ebx, 4
je 0x422865
cmp ebx, 3
je 0x422865
cmp ebx, 1
je 0x422865
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x1c
mov edx, dword [ebp + 0x10c]
lea eax, [ebp + 0xc]
push edx
push eax
mov ecx, ebp
call fcn.004223d0
test eax, eax
jne 0x422885
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x1c
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x15c], 0
push ecx
call dword [sym.imp.WS2_32.dll_htons]
and eax, 0xffff
mov dword [ebp + 0x158], eax
jmp 0x4228bd
mov edx, dword [esp + 0x12]
mov dword [ebp + 0x15c], esi
and edx, 0xffff
mov dword [ebp + 0x158], edx
push edi
lea eax, [ebp + 0x160]
push 0x42b080
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, ebp
mov byte [ebp + 0x25f], 0
mov dword [ebp + 0x154], 1
call fcn.00422900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x1c