Function at 0x425278
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [0x4453cc], edi
jne 0x42530a
cmp dword [0x441ff4], edi
je 0x425e87
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x4252ba
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425e87
cmp eax, 1
jle 0x425e87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43e9c8], edi
mov ebx, eax
jge 0x4252dc
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x4253dd
push 1
push dword [0x43e9c8]
push 0x184
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push str.SSLSock_is_not_properly_initialized_n
jmp 0x4253d0
and byte [esi + 0x58], 0
cmp dword [esp + 0x54], edi
mov word [esi + 0x262], di
je 0x425336
push 0x104
lea eax, [esi + 0x15c]
push dword [esp + 0x58]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x42533d
and byte [esi + 0x15c], 0
mov eax, dword [esi]
mov dword [esi + 0x44], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [eax], 0xffffffff
jne 0x4253ea
cmp dword [0x441ff4], edi
je 0x425e87
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x425389
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425e87
cmp eax, 1
jle 0x425e87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43e9c8], edi
mov ebx, eax
jge 0x4253ab
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x4253dd
push 1
push dword [0x43e9c8]
push 0x1a2
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push str.socket_is_not_properly_initialized_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
jmp 0x425e81
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x268], edi
mov dword [0x4453c8], edi
sub eax, edi
mov dword [esi + 0x2b0], edi
mov dword [esi + 0x2ac], edi
mov dword [esi + 0x2b4], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0x20], 0xc0
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x2c], 3
je 0x425447
dec eax
je 0x42543e
mov dword [esi + 0x54], edi
jmp 0x42544e
mov dword [esi + 0x54], 0xaa02
jmp 0x42544e
mov dword [esi + 0x54], 0xa400
call fcn.0041edcd
cmp eax, 4
jl 0x42545b
mov dword [esi + 0x54], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea eax, [esp + 0x20]
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], eax
xor edi, edi
cmp dword [0x441ff4], edi
je 0x425502
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x42549c
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425502
cmp eax, 3
jle 0x425502
call ebp
mov edi, eax
call ebx
cmp dword [0x43e9c8], 0
mov dword [esp + 0x10], eax
jge 0x4254b9
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x4254ef
push 3
push dword [0x43e9c8]
push 0x1d4
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push dword [esp + 0x64]
push str.Try_SSL_protocol_index__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov eax, dword [esp + 0x5c]
inc dword [esp + 0x54]
add dword [esp + 0x5c], 4
mov eax, dword [eax]
mov dword [esi + 0x50], eax
cmp dword [0x4453d0], edi
jne 0x42553b
push 0x4427c0
push edi
mov ecx, esi
call fcn.00426225
test eax, eax
jne 0x425904
mov dword [0x4453d0], 1
push dword [esp + 0x7c]
mov ecx, esi
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x68]
push dword [esp + 0x68]
call fcn.00427331
test eax, eax
jne 0x42597c
cmp byte [esp + 0x70], al
je 0x425612
push dword [esi]
call fcn.00430003
test al, al
pop ecx
jne 0x425612
cmp dword [0x441ff4], edi
je 0x425612
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x4255ab
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425612
cmp eax, 1
jle 0x425612
call ebp
mov edi, eax
call ebx
cmp dword [0x43e9c8], 0
mov dword [esp + 0x10], eax
jge 0x4255c8
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x4255ff
push 1
push dword [0x43e9c8]
push 0x1f6
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
add esp, 0x10
call ebx
push eax
push str.Disable_Client_Authority_process_failure_the__error_no_is__d
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push dword [esp + 0x60]
lea ecx, [esp + 0x18]
mov eax, dword [esi]
push ecx
lea ecx, [esi + 0x2a4]
push ecx
mov ecx, esi
push dword [esp + 0x58]
push 0x4427c0
push dword [eax]
call fcn.0042aa09
cmp eax, edi
je 0x425a96
cmp eax, 0x80090331
jne 0x4257a6
cmp dword [esp + 0x54], 4
jae 0x425a1e
mov eax, dword [0x4453cc]
push 0x4427c0
call dword [eax + 0x10]
mov dword [0x4453d0], edi
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x441ff4], edi
je 0x4256fe
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x425698
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x4256fe
cmp eax, 3
jle 0x4256fe
call ebp
mov edi, eax
call ebx
cmp dword [0x43e9c8], 0
mov dword [esp + 0x10], eax
jge 0x4256b5
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x4256eb
push 3
push dword [0x43e9c8]
push 0x215
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
mov eax, dword [esi]
push dword [eax]
push str.CSSLSocket::Retry_protocol__closed_socket__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi]
mov dword [ecx], eax
cmp dword [0x441ff4], edi
je 0x42579b
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x425735
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x42579b
cmp eax, 3
jle 0x42579b
call ebp
mov edi, eax
call ebx
cmp dword [0x43e9c8], 0
mov dword [esp + 0x10], eax
jge 0x425752
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425788
push 3
push dword [0x43e9c8]
push 0x217
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
mov eax, dword [esi]
push dword [eax]
push str.CSSLSocket::Retry_protocol__opened_socket__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
dec dword [0x43e9cc]
jmp 0x425475
cmp dword [0x4455a0], edi
je 0x425d7f
mov eax, dword [0x4453cc]
push 0x4427c0
call dword [eax + 0x10]
mov dword [0x4453d0], edi
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x441ff4], edi
je 0x42585c
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x4257f6
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x42585c
cmp eax, 3
jle 0x42585c
call ebp
mov edi, eax
call ebx
cmp dword [0x43e9c8], 0
mov dword [esp + 0x10], eax
jge 0x425813
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425849
push 3
push dword [0x43e9c8]
push 0x224
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
mov eax, dword [esi]
push dword [eax]
push str.CSSLSocket::Retry_cert__closed_socket__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi]
mov dword [ecx], eax
cmp dword [0x441ff4], edi
je 0x425502
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x42589b
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425475
cmp eax, 3
jle 0x425475
call ebp
mov edi, eax
call ebx
cmp dword [0x43e9c8], 0
mov dword [esp + 0x10], eax
jge 0x4258b8
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x4258ee
push 3
push dword [0x43e9c8]
push 0x226
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
mov eax, dword [esi]
push dword [eax]
push str.CSSLSocket::Retry_cert__opened_socket__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x425473
cmp dword [0x441ff4], edi
je 0x425dfd
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x425933
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425dfd
cmp eax, 1
jle 0x425dfd
call ebp
mov ebp, eax
call ebx
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x42594e
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425def
push 1
push dword [0x43e9c8]
push 0x1de
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push str.Error_creating_credentials_n
jmp 0x425de2
cmp dword [0x441ff4], edi
je 0x425a12
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x4259a3
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425a12
cmp eax, 1
jle 0x425a12
call ebp
mov ebp, eax
call ebx
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x4259be
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425a04
push 1
push dword [0x43e9c8]
push 0x1ea
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
add esp, 0x10
cmp dword [esp + 0x60], 0
je 0x4259f0
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
jmp 0x4259f2
xor eax, eax
push eax
push str.Error_connecting_to_server:__d_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
and byte [0x445414], 0
jmp 0x425dfd
cmp dword [0x441ff4], edi
je 0x425dfd
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x425a4d
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425dfd
cmp eax, 1
jle 0x425dfd
call ebp
mov ebp, eax
call ebx
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x425a68
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425def
push 1
push dword [0x43e9c8]
push 0x20d
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push str.Error_performing_handshake__no_protocol_matched_n
jmp 0x425de2
lea eax, [esi + 0x2b4]
mov dword [esi + 0x2b0], 1
lea edi, [esi + 0x2a4]
push eax
mov eax, dword [0x4453cc]
push 0x53
push edi
call dword [eax + 0x2c]
test eax, eax
mov dword [esp + 0x70], eax
je 0x425b45
cmp dword [0x441ff4], 0
je 0x425dfd
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x425af5
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x425dfd
cmp eax, 1
jle 0x425dfd
call ebp
mov ebp, eax
call ebx
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x425b10
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425def
push 1
push dword [0x43e9c8]
push 0x23f
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push dword [esp + 0x80]
push str.Error_0x_x_querying_remote_certificate_n
jmp 0x425c0e
cmp byte [esp + 0x6c], 0
mov dword [esi + 0x2ac], 1
je 0x425c31
push 0
mov ecx, esi
push dword [esi + 0x2b4]
call fcn.0042ca66
push 0
mov ecx, esi
push dword [esp + 0x50]
push dword [esi + 0x2b4]
call fcn.0042d2c9
test eax, eax
mov dword [esp + 0x70], eax
je 0x425c1b
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
cmp dword [0x441ff4], 0
je 0x425dfd
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x425bc3
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x425dfd
cmp eax, 3
jle 0x425dfd
call ebp
mov ebp, eax
call ebx
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x425bde
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425def
push 3
push dword [0x43e9c8]
push 0x25a
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push dword [esp + 0x80]
push str._Error_0x_x_authenticating_server_credentials__n
call fcn.0041c506
add esp, 0x18
jmp 0x425dea
push dword [esi + 0x2b4]
lea ebp, [esi + 0x2b4]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and dword [ebp], 0
push edi
mov ecx, esi
call fcn.0042d581
mov eax, dword [0x4453cc]
lea ebp, [esi + 0x18]
push ebp
push 4
push edi
call dword [eax + 0x2c]
mov edi, eax
test edi, edi
je 0x425ce7
cmp dword [0x441ff4], 0
je 0x425dfd
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x425c83
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x425dfd
cmp eax, 1
jle 0x425dfd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
call ebx
cmp dword [0x43e9c8], 0
mov dword [esp + 0x70], eax
jge 0x425ca4
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425cd7
push 1
push dword [0x43e9c8]
push 0x272
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push edi
push str._Error_0x_x_reading_SECPKG_ATTR_STREAM_SIZES_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x70]
jmp 0x425df7
cmp dword [0x441ff4], 0
je 0x425d78
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x425d10
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x425d78
cmp eax, 3
jle 0x425d78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call ebx
cmp dword [0x43e9c8], 0
mov ebx, eax
jge 0x425d2f
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425d6a
push 3
push dword [0x43e9c8]
push 0x279
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [ebp]
push str.Header:__d__Trailer:__d__MaxMessage:__d_n
call fcn.0041c506
add esp, 0x20
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
jmp 0x425e89
cmp dword [0x441ff4], edi
je 0x425dfd
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x425da2
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x425dfd
cmp eax, 1
jle 0x425dfd
call ebp
mov ebp, eax
call ebx
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x425dbd
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425def
push 1
push dword [0x43e9c8]
push 0x22b
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push str.Error_performing_handshake_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
call fcn.00425e93
xor ebp, ebp
cmp dword [0x441ff4], ebp
je 0x425e87
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x425e29
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebp
jne 0x425e87
cmp eax, 1
jle 0x425e87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call ebx
cmp dword [0x43e9c8], ebp
mov edi, eax
jge 0x425e47
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x425e79
push 1
push dword [0x43e9c8]
push 0x282
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push str.Failed_to_create_SSL_Socket_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x34