Function at 0x43abd0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
push 1
push 0
push 0
push 1
mov edi, 0x3e8
push 3
push 2
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43add4
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x48]
push 4
push eax
push 4
push 0
push ebx
call esi
cmp eax, 0xffffffff
je 0x43add4
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x1006
push 0xffff
push ebx
call esi
cmp eax, 0xffffffff
je 0x43add4
lea edx, [esp + 0x14]
push 4
push edx
push 1
push 0xffff
push ebx
call esi
cmp eax, 0xffffffff
je 0x43add4
lea eax, [esp + 0x10]
push 4
push eax
push 0x1005
push 0xffff
push ebx
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
je 0x43add4
mov esi, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x20], ecx
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x43acb9
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x43acdf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
lea edi, [esp + 0x24]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0x20], ax
jmp 0x43acea
mov dword [esp + 0x24], eax
mov word [esp + 0x20], 2
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 0x400
call fcn.00460f0e
push 0x400
mov esi, eax
call fcn.00460f0e
add esp, 8
mov ebp, eax
test esi, esi
jne 0x43ad1a
push esi
jmp 0x43adc6
test ebp, ebp
jne 0x43ad37
push esi
call fcn.00460f37
push ebp
call fcn.00460f37
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, 0x100
xor eax, eax
mov edi, esi
push 0x2c
rep stosd dword es:[edi], eax
push esi
call fcn.0043ab80
mov edi, dword [0x46c27c]
add esp, 8
mov word [esi + 2], 0
call edi
push 0x2c
push esi
mov dword [esi + 8], eax
mov word [esi + 6], 0
call fcn.0043ab20
add esp, 8
mov word [esi + 2], ax
call edi
lea edx, [esp + 0x20]
push 0x10
push edx
push 0
push 0x2c
push esi
push ebx
mov dword [esp + 0x5c], eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x43adc5
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 0x400
push ebp
push ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [esp + 0x1c], eax
call edi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
sub eax, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x43adde
push esi
call fcn.00460f37
push ebp
call fcn.00460f37
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [eax], ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call fcn.00460f37
push ebp
call fcn.00460f37
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret