Function at 0x10003270
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x848
mov eax, dword [0x1001b2a8]
xor eax, esp
mov dword [esp + 0x844], eax
cmp dword [ebp + 0xc], 0x30
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], eax
mov edi, ecx
mov esi, edx
je 0x100032b6
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.1000c11c
mov esp, ebp
pop ebp
ret 8
push 0xa
push 0x20
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0x28]
sub ecx, 2
neg ecx
sbb ecx, ecx
push 0x401
lea edx, [esp + 0x50]
and ecx, 0xc
push edx
add ecx, 0x10
lea eax, [ebx + 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
call fcn.10002910
sub eax, dword [ebx + 0x60]
push 0
sbb edx, dword [ebx + 0x64]
push 0x3938700
push edx
push eax
call fcn.10015820
push edx
push eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x458]
push str._s:_s:_lld
push ecx
call fcn.1000c57d
add esp, 0x18
cmp dword [esi + 0x14], 1
jne 0x1000340c
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [edi + 0xc], eax
mov dword [esp + 8], 4
mov ecx, dword [edi]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi], eax
add edi, 4
dec dword [esp + 8]
jne 0x10003345
xor edi, edi
jmp 0x10003360
mov edx, dword [esi + edi*4]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + edi*4], eax
inc edi
cmp edi, 0xc
jl 0x10003360
cmp dword [ebx + 0x50], 0
lea esi, [ebx + 0x58]
mov dword [esi], 0x30
jne 0x100033be
push 0
push 0x2000
push 0
call fcn.100094a0
add esp, 0xc
mov dword [ebx + 0x50], eax
test eax, eax
je 0x100033f4
mov dword [ebx + 0x44], eax
add eax, 0x10
mov dword [ebx + 0x54], 0x2000
mov dword [esi], 0
mov dword [ebx + 0x40], 0x10
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], 0x1ff0
cmp dword [ebx + 0x20], 2
jne 0x100033f4
mov eax, dword [ebx + 0x54]
add eax, 0xfffffff0
cmp dword [esi], eax
jbe 0x100033d0
mov dword [esi], eax
mov eax, dword [esi]
mov ecx, dword [ebx + 0x3c]
push 0
push 0
push ecx
mov dword [ebx + 0x48], eax
lea eax, [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x1c]
push 0
push esi
push 2
lea edx, [ebx + 0x40]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x844]
xor ecx, esp
call fcn.1000c11c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 8]
cmp dword [esi + 0x1c], ecx
je 0x10003451
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub eax, 1
sbb ecx, 0
push ecx
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x458]
push str._s:_s:_lld
push ecx
call fcn.1000c57d
mov edx, dword [esp + 0x20]
add esp, 0x18
cmp dword [esi + 0x1c], edx
jne 0x1000329d
mov eax, dword [edi]
mov ecx, dword [esi + 0x18]
mov edx, eax
and edx, 0x80000000
mov dword [esp + 8], ecx
cmp edx, 0x80000000
jne 0x10003515
test eax, 0x7fff0000
jne 0x10003515
cmp dword [esi], 4
jne 0x100034ac
cmp dword [esi + 4], 1
jne 0x100034ac
mov eax, dword [esp + 0x1c]
push eax
call fcn.10003530
test eax, eax
jns 0x10003499
mov dword [esi + 0x14], 0x3ea
mov eax, edi
je 0x100034a3
mov ecx, dword [esp + 8]
jmp 0x100034b5
mov edx, dword [esp + 8]
mov dword [edi + 0xc], edx
jmp 0x100034b8
mov dword [esi + 0x14], 0x3ea
mov eax, edi
mov dword [edi + 0xc], ecx
call fcn.10002720
mov edi, esi
call fcn.10002750
cmp dword [ebx + 0x50], 0
mov dword [ebx + 0x58], 0x30
jne 0x1000350e
push 0
push 0x2000
push 0
call fcn.100094a0
add esp, 0xc
mov dword [ebx + 0x50], eax
test eax, eax
je 0x10003515
mov dword [ebx + 0x44], eax
add eax, 0x10
mov dword [ebx + 0x54], 0x2000
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x40], 0x10
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], 0x1ff0
mov eax, ebx
call fcn.10003150
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x84c]
pop edi
pop esi
xor ecx, esp
call fcn.1000c11c
mov esp, ebp
pop ebp
ret 8