Function at 0x10022cc0
Capabilities:
Create raw socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101819f4
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4], edx
mov esi, ecx
push 1
push 0x101cd680
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp + 8]
call fcn.10002c60
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.10002930
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10022d73
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10022d73
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
cmp byte [edx], 0
jne 0x10022d5b
xor ecx, ecx
jmp 0x10022d69
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022d60
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.1001ec60
cmp dword [ebp - 0x1c], 0
jne 0x10022da8
push ecx
lea ecx, [ebp - 0xc0]
call fcn.10002930
mov edx, eax
cmp byte [edx], 0
jne 0x10022d90
xor ecx, ecx
jmp 0x10022d9e
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022d95
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.1001ec60
push 1
push 0x101cd680
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp + 8]
call fcn.10002dd0
cmp dword [eax + 0x14], 8
jb 0x10022dc6
mov eax, dword [eax]
push eax
call fcn.1014de1d
add esp, 4
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0x130]
call fcn.100024d0
mov dword [ebp - 0xcc], vtable.asp::CTcpUdpLink.0
push 6
mov byte [ebp - 4], 3
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push 1
cmovae edi, dword [ebp - 0x2c]
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10022ebb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0xc8]
cmovae eax, dword [ebp - 0x2c]
push eax
push str._tConnectTest_Failed:_s:_d_n
sub esp, 0xc
mov dword [ebp - 0x40], str.WPFHelper.cpp:ConnecctTest__:Line_660
mov eax, esp
mov dword [ebp - 0x3c], 0
movq xmm0, qword [ebp - 0x40]
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.10005540
mov esi, dword [ebp - 0xc4]
add esp, 0x18
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], eax
jb 0x10022e78
push dword [ebp - 0x2c]
call fcn.1002fb32
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.100024d0
lea ecx, [ebp + 8]
call fcn.100024d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0xc8]
mov ecx, edi
call fcn.10001ff0
mov edi, eax
cmp edi, 0xffffffff
je 0x10022e14
push 0
push 0x101cf8e0
mov ecx, esi
call fcn.1001e640
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x10
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10022f07
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.100020f0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movdqu xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x58], 0
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x54], 0
call fcn.10018490
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.10018490
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 5
push eax
call fcn.10011d30
cmp dword [esi + 0x14], 8
jb 0x10022f75
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x5c]
call fcn.100035c0
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 8
jb 0x10022f93
mov edx, dword [edx]
cmp word [edx], 0
jne 0x10022f9d
xor ecx, ecx
jmp 0x10022fb1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022fa2
sub ecx, esi
sar ecx, 1
mov esi, dword [ebp - 0xc4]
push ecx
push edx
mov ecx, esi
call fcn.1001e640
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 5
call fcn.100024d0
lea eax, [ebp - 0x38]
push eax
sub esp, 0x60
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x101cf8e0
call fcn.10002570
sub esp, 0x60
mov byte [ebp - 4], 7
mov ecx, esp
push esi
call fcn.100026c0
mov byte [ebp - 4], 5
call fcn.10010ba0
push ecx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.10010b00
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 8
jb 0x1002301c
mov edx, dword [edx]
cmp word [edx], 0
jne 0x10023026
xor ecx, ecx
jmp 0x10023045
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x10023030
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023030
sub ecx, esi
mov esi, dword [ebp - 0xc4]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.1001e640
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 5
call fcn.100024d0
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0xc8]
cmovae eax, dword [ebp - 0x2c]
push eax
push str._tConnectTest_success:_s:_d_n
sub esp, 0xc
mov dword [ebp - 0x40], str.WPFHelper.cpp:ConnecctTest__:Line_656
mov eax, esp
mov dword [ebp - 0x3c], 0
movq xmm0, qword [ebp - 0x40]
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.10005540
add esp, 0x18
lea ecx, [ebp - 0x5c]
call fcn.10003500
jmp 0x10022e5c