Function at 0x428240
Capabilities:
Create tcp socket
Create udp socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ef40
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x48c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42828e
mov ecx, str.error_while_creating_a_UDP_socket
call fcn.00403510
xor esi, esi
jmp 0x4282a2
push 4
call fcn.0042f713
mov esi, eax
add esp, 4
mov dword [ebp - 0x354], esi
mov dword [esi], edi
push 0x10
push dword [0x48f69c]
mov dword [ebp - 0x350], esi
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4282d6
mov ecx, str.error_while_binding_socket_to_address
call fcn.00403510
call edi
neg eax
jne 0x42883b
push bind
push dword [esi]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x4282fb
mov ecx, str.eror_while_start_to_listen_socket
call fcn.00403510
call edi
neg eax
jne 0x42883b
xor eax, eax
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x344], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov ecx, 0x48f73c
lea eax, [ebp - 0x350]
push eax
call fcn.00403690
mov byte [0x48f686], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x411a
push 0x48f748
call fcn.0042dc3e
add esp, 4
test eax, eax
je 0x42835e
push eax
call fcn.0042dfb4
add esp, 4
mov edx, 0x48f73c
lea ecx, [ebp - 0x134]
call fcn.00403580
xor edx, edx
lea ecx, [ebp - 0x238]
mov esi, eax
call fcn.00403580
xor edx, edx
lea ecx, [ebp - 0x33c]
mov edi, eax
call fcn.00403580
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x348], eax
push ecx
push eax
push edi
push esi
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4287de
push esi
mov edx, 0x48f73c
lea ecx, [ebp - 0x20]
call fcn.00403620
push edi
xor edx, edx
xor ecx, ecx
call fcn.00403620
push dword [ebp - 0x348]
xor edx, edx
xor ecx, ecx
call fcn.00403620
push 0x48f748
call fcn.0042dc63
add esp, 0x10
test eax, eax
je 0x4283ea
push eax
call fcn.0042dfb4
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0x344], esi
mov dword [ebp - 0x348], esi
cmp eax, dword [ebp - 0x1c]
je 0x4287fe
mov edi, dword [eax]
cmp edi, dword [ebp - 0x350]
jne 0x42841a
mov ecx, edi
call fcn.00429140
jmp 0x4287c4
push 0x24
call fcn.0042f713
mov dword [eax + 4], 1
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
add esp, 4
mov dword [ebp - 0x358], eax
lea esi, [eax + 0xc]
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj_struct_Query_.0
lea ecx, [eax + 4]
movups xmmword [esi], xmm0
mov dword [ebp - 0x34c], ecx
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x340], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x48f7c0]
cmp eax, dword [ecx + 4]
jle 0x4284ce
push 0x48f7c0
call fcn.0042f372
add esp, 4
cmp dword [0x48f7c0], 0xffffffff
jne 0x4284ce
xor eax, eax
push 0x470370
mov word [0x48f7c4], ax
mov byte [0x48f7c6], al
call fcn.0042f6f5
push 0x48f7c0
call fcn.0042f328
add esp, 8
lea eax, [esi + 8]
mov ecx, 0x48f7c4
push eax
push edi
call fcn.00401810
test al, al
jne 0x428662
push 0x48f748
call fcn.0042dc3e
add esp, 4
test eax, eax
je 0x4284ff
push eax
call fcn.0042dfb4
add esp, 4
mov esi, dword [0x48f73c]
mov eax, dword [0x48f740]
cmp esi, eax
je 0x42851b
nop
cmp dword [esi], edi
je 0x42851b
add esi, 4
cmp esi, eax
jne 0x428510
lea ecx, [esi + 4]
cmp esi, ecx
je 0x42853c
sub eax, ecx
push eax
push ecx
push esi
mov dword [ebp - 0x14], eax
call fcn.004466c0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, esi
mov dword [0x48f740], eax
push 0x48f748
call fcn.0042dc63
add esp, 4
test eax, eax
je 0x428556
push eax
call fcn.0042dfb4
add esp, 4
push 0x48f6dc
call fcn.0042dc3e
add esp, 4
test eax, eax
je 0x428570
push eax
call fcn.0042dfb4
add esp, 4
mov edx, dword [0x48f778]
mov esi, edx
mov dword [ebp - 0x340], edx
mov ecx, dword [edx + 4]
mov eax, ecx
cmp byte [eax + 0xd], 0
jne 0x4285bb
nop dword [eax]
mov edx, dword [eax + 0x10]
cmp edx, edi
jae 0x42859c
mov eax, dword [eax + 8]
jmp 0x4285af
cmp byte [esi + 0xd], 0
je 0x4285a7
cmp edi, edx
cmovb esi, eax
mov dword [ebp - 0x340], eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x428590
mov edx, dword [ebp - 0x340]
cmp byte [esi + 0xd], 0
jne 0x4285c3
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4285e4
nop dword [eax]
cmp edi, dword [ecx + 0x10]
jae 0x4285db
mov esi, ecx
mov ecx, dword [ecx]
jmp 0x4285de
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x4285d0
mov dword [ebp - 0x14], edx
cmp edx, esi
je 0x428603
nop dword [eax + eax]
lea ecx, [ebp - 0x14]
call fcn.004084b0
cmp dword [ebp - 0x14], esi
jne 0x4285f0
mov edx, dword [ebp - 0x340]
push esi
push edx
lea eax, [ebp - 0x35c]
mov ecx, 0x48f778
push eax
call fcn.00426860
push 0x48f6dc
call fcn.0042dc63
add esp, 4
test eax, eax
je 0x428630
push eax
call fcn.0042dfb4
add esp, 4
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x34c]
lock xadd dword [ecx], eax
jne 0x4287c0
mov esi, dword [ebp - 0x358]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
or eax, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
jmp 0x4287b7
mov eax, dword [0x48f694]
mov dword [ebp - 0x14], eax
cmp eax, dword [0x48f690]
je 0x428696
call fcn.0045520c
mov esi, dword [0x48f694]
xor edx, edx
mov ecx, dword [0x48f690]
sub ecx, esi
inc ecx
div ecx
lea eax, [esi + edx]
mov esi, dword [ebp - 0x340]
mov dword [ebp - 0x14], eax
call fcn.00455625
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
add eax, ecx
mov dword [esi + 4], eax
lea eax, [esi + 0x14]
push 0x48f6dc
mov dword [ebp - 0x14], eax
mov dword [eax], edi
call fcn.0042dc3e
add esp, 4
test eax, eax
je 0x4286c7
push eax
call fcn.0042dfb4
add esp, 4
mov edx, dword [0x48f778]
mov eax, dword [esi + 0x10]
mov esi, edx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x340], eax
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x428703
mov ecx, dword [edi]
cmp dword [eax + 0x10], ecx
jae 0x4286f0
mov eax, dword [eax + 8]
jmp 0x4286f4
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4286e6
cmp esi, edx
je 0x428703
cmp ecx, dword [esi + 0x10]
jae 0x42872f
push ecx
lea eax, [ebp - 0x34c]
mov dword [ebp - 0x34c], edi
push eax
push ecx
call fcn.0042b100
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x354]
push eax
call fcn.0042b1f0
mov esi, dword [ebp - 0x354]
push dword [ebp - 0x340]
lea ecx, [esi + 0x18]
call fcn.00427f50
push 0x48f6dc
call fcn.0042dc63
add esp, 4
test eax, eax
je 0x428757
push eax
call fcn.0042dfb4
add esp, 4
push 0x48f70c
call fcn.0042dc3e
add esp, 4
test eax, eax
je 0x428771
push eax
call fcn.0042dfb4
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0042a7f0
push 0x48f70c
call fcn.0042dc63
add esp, 4
test eax, eax
je 0x428794
push eax
call fcn.0042dfb4
add esp, 4
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4287c0
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4287c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4287c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x348]
add eax, 4
mov dword [ebp - 0x348], eax
cmp eax, dword [ebp - 0x1c]
jne 0x428404
jmp 0x4287f8
push 0x48f748
call fcn.0042dc63
add esp, 4
test eax, eax
je 0x4287f8
push eax
call fcn.0042dfb4
add esp, 4
mov esi, dword [ebp - 0x344]
cmp byte [0x48f686], 0
jne 0x428344
test esi, esi
je 0x42883b
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x428831
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428856
push ecx
push esi
call fcn.0042f743
add esp, 8
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.0042f1ff
mov esp, ebp
pop ebp
ret
call fcn.0044b2e7
int3