Function at 0x440c50
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
jne 0x440c9e
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x440c9e
push 0x51e
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x440cb7
mov eax, dword [esi]
test eax, eax
je 0x440cb7
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
mov dword [esi], 0
push 0
push 0
lea eax, [edi + 0x24]
call fcn.00452ae0
push 0
push 1
lea eax, [edi + 0x80]
call fcn.00452ae0
mov eax, dword [edi + 0x94]
mov edx, dword [edi + 0x38]
mov dword [edi + 0xe0], eax
mov eax, dword [edi + 0x14]
add esp, 0x10
cmp eax, 1
mov dword [edi + 0xdc], edx
je 0x440cf7
cmp eax, 2
jne 0x440d05
lea eax, [edi + 0x60]
lea ebx, [edi + 0x13c]
call fcn.00441890
cmp dword [edi + 0x114], 0
je 0x440d18
mov ecx, dword [edi + 0xf8]
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x10c]
test ecx, ecx
je 0x440d8f
cmp dword [edi + 0x14], 1
jne 0x440d80
mov eax, dword [edi]
xor edx, edx
cmp ecx, 2
mov ecx, dword [esp + 0xc]
sete dl
push esi
push edx
push 0
push eax
push ecx
lea edx, [eax + 0x20]
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.0043fee0
add esp, 0x18
cmp dword [esp + 0x10], 0
mov dword [edi + 0x1c], eax
je 0x440d80
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x440d80
push 0x53e
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov ecx, dword [esi]
test ecx, ecx
jne 0x4411cf
jmp 0x441060
push esi
lea edx, [esp + 0x10]
push edx
push 2
mov eax, edi
call fcn.00440680
mov eax, dword [esi]
add esp, 0xc
test eax, eax
jne 0x4411cf
mov eax, dword [edi + 0x14]
cmp eax, 1
jne 0x440e7e
mov eax, dword [edi + 0x110]
sub eax, 0
je 0x440e56
sub eax, 1
je 0x440e40
sub eax, 1
je 0x440e00
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x441022
push 0x56a
push str.._socket.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
jmp 0x441022
mov ecx, dword [edi]
mov edi, dword [edi + 0x1c]
push 0
add ecx, 0x20
call fcn.0043fda0
mov ecx, dword [ebp + 8]
add esp, 4
cmp eax, 0xffffffff
mov dword [ecx + 0x1c], eax
jne 0x440e2a
mov ecx, esi
mov dword [ecx], 4
jmp 0x4411cf
mov edx, dword [ecx]
add edx, 0x20
push edx
call fcn.0043fe70
mov edi, dword [ebp + 8]
add esp, 4
jmp 0x441022
mov ebx, dword [edi]
mov eax, dword [edi + 0x1c]
push 0
push 1
call fcn.0043fcb0
add esp, 8
jmp 0x441022
mov eax, dword [edi]
mov ecx, dword [esp + 0xc]
push esi
push 0
push 1
push eax
push ecx
lea edx, [eax + 0x20]
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.0043fee0
add esp, 0x18
mov dword [edi + 0x1c], eax
jmp 0x441022
cmp eax, 2
jne 0x440f59
mov dword [esp + 0x18], 0
lea ebx, [edi + 0x1c]
mov ecx, dword [edi + 0x138]
mov edx, dword [edi + 0x120]
mov eax, dword [edi]
push esi
push ecx
mov ecx, dword [edi + 0x118]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [edi + 0xf4]
push ecx
push edx
mov edx, dword [edi + 0x108]
lea ecx, [eax + 0x20]
push ecx
push edx
push eax
push ebx
call fcn.00440220
mov eax, dword [esi]
add esp, 0x2c
test eax, eax
jne 0x4411cf
mov eax, dword [edi + 0x1a0]
test eax, eax
je 0x440f0c
mov edx, dword [edi + 0x1bc]
push edx
mov edx, dword [edi + 0x1b8]
push edx
mov edx, dword [ebx]
push edx
lea ecx, [edi + 0x14c]
push eax
mov edx, esi
call fcn.00439550
add esp, 0x10
mov dword [esp + 0x18], eax
jmp 0x440f32
mov eax, dword [edi + 0x1a4]
test eax, eax
je 0x440f32
mov ecx, dword [edi + 0x1bc]
push esi
mov esi, dword [edi + 0x1b8]
push ecx
mov ecx, dword [ebx]
push eax
call fcn.004435d0
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x441022
mov edx, dword [ebx]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
jmp 0x440e92
test eax, eax
jne 0x441022
cmp dword [edi + 0x1a4], eax
je 0x441022
mov ecx, dword [edi + 0x138]
mov edx, dword [edi + 0x120]
mov eax, dword [edi]
push esi
push ecx
mov ecx, dword [edi + 0x118]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [edi + 0xf4]
push ecx
push edx
mov edx, dword [edi + 0x108]
lea ecx, [eax + 0x20]
push ecx
push edx
push eax
lea ebx, [edi + 0x20]
push ebx
call fcn.00440220
mov eax, dword [esi]
add esp, 0x2c
test eax, eax
jne 0x4411cf
mov ecx, dword [edi + 0x1a4]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebx]
lea esi, [edi + 0x1a8]
call fcn.004436f0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add esp, 4
test eax, eax
jne 0x4411cc
mov ecx, dword [edi + 0x1b8]
mov edx, dword [edi + 0x1bc]
mov esi, dword [ebp + 0xc]
mov dword [edi + 0xf8], ecx
mov ecx, dword [edi]
mov dword [edi + 0xfc], edx
mov dword [edi + 0x134], eax
mov dword [ecx + 0x24], eax
mov edx, dword [edi]
push esi
push eax
mov dword [edx + 0x14], eax
push 1
mov eax, edi
call fcn.00440680
mov eax, dword [esi]
add esp, 0xc
test eax, eax
jne 0x4411cc
mov ecx, dword [esi]
test ecx, ecx
jne 0x4411cf
cmp dword [esp + 0x10], ecx
je 0x441060
cmp dword [0x5426d0], 1
jb 0x441058
push 1
call fcn.00408960
add esp, 4
test eax, eax
je 0x441058
push str.TCP_UDP:_Dynamic_remote_address_changed_during_TCP_connection_establishment
push 1
call fcn.00408640
add esp, 8
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
mov dword [eax + 0x14], edx
mov esi, dword [edi + 0x1c]
lea eax, [edi + 0x128]
call fcn.0043fa50
test byte [edi + 0x138], 2
je 0x44107f
mov ecx, dword [edi + 0x1c]
call fcn.0043fba0
mov ecx, dword [edi + 0x1c]
call fcn.0040a010
cmp dword [edi + 0x124], 0
jl 0x4410ad
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x4410ad
push str.__mtu_disc_is_not_supported_on_this_OS
push 0x10
call fcn.00408640
add esp, 8
cmp dword [edi + 0x10c], 0
je 0x441100
cmp dword [0x5426d0], 1
jb 0x4411cc
push 1
call fcn.00408960
add esp, 4
test eax, eax
je 0x44117d
mov eax, dword [edi + 0x14]
cmp eax, 3
ja 0x4410e6
mov eax, dword [eax*8 + 0x508c10]
jmp 0x4410eb
mov eax, str._unknown_protocol_
push eax
push str._s_link_local:__inetd_
push 1
call fcn.00408640
add esp, 0xc
jmp 0x44117d
cmp dword [0x5426d0], 1
jb 0x4411cc
push 1
call fcn.00408960
add esp, 4
test eax, eax
je 0x44117d
mov eax, dword [edi + 0x108]
test eax, eax
mov dword [esp + 0x18], str.__bound_
jne 0x441135
mov dword [esp + 0x18], 0x5118be
mov ecx, dword [edi + 0x14]
cmp ecx, 3
ja 0x441146
mov esi, dword [ecx*8 + 0x508c10]
jmp 0x44114b
mov esi, str._unknown_protocol_
mov ebx, dword [edi]
neg eax
lea ecx, [esp + 0x14]
sbb eax, eax
push ecx
and eax, 2
push eax
push 0x5164a8
call fcn.00441eb0
mov edx, dword [esp + 0x24]
add esp, 0xc
push eax
push edx
push esi
push str._s_link_local_s:__s
push 1
call fcn.00408640
add esp, 0x14
cmp dword [0x5426d0], 1
jb 0x4411cc
push 1
call fcn.00408960
add esp, 4
test eax, eax
je 0x4411cc
mov eax, dword [edi + 0x14]
cmp eax, 3
ja 0x4411a5
mov esi, dword [eax*8 + 0x508c10]
jmp 0x4411aa
mov esi, str._unknown_protocol_
mov eax, dword [edi]
add eax, 0x20
push 1
push eax
lea eax, [esp + 0x1c]
call fcn.00441fd0
push eax
push esi
push str._s_link_remote:__s
push 1
call fcn.00408640
add esp, 0x18
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4411df
mov ecx, dword [esi]
test ecx, ecx
jne 0x4411df
mov dword [esi], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4411fe
mov edi, dword [sym.imp.MSVCR80.dll_free]
lea ecx, [ecx]
mov esi, dword [eax]
push eax
call edi
add esp, 4
test esi, esi
mov eax, esi
jne 0x4411f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret