Function at 0x43857c
Capabilities:
Connect socket
Get socket status

Disassembly:
push 0x31c
mov eax, 0x484ac8
call fcn.00466686
mov esi, ecx
lea eax, [esi + 0x88]
lea edi, [ebp - 0xd0]
mov dword [ebp - 0x88], esi
call fcn.00418b3a
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0xb0], bl
je 0x4385d4
cmp byte [ebp + 8], bl
jne 0x4385ce
push 0xfffffffffffffffd
pop ebx
lea ecx, [ebp - 0xd0]
call fcn.00418b53
mov eax, ebx
call fcn.00466709
ret 8
mov byte [esi + 0xb0], bl
cmp byte [esi + 0x78], bl
je 0x438609
cmp byte [ebp + 0xc], bl
je 0x438603
cmp byte [esi + 0x80], bl
je 0x4385f0
push esi
call fcn.0043811c
push 0xfffffffffffffffe
jmp 0x4385b8
xor eax, eax
cmp byte [esi + 0xb1], bl
setne al
dec eax
and eax, 0xfffffffe
mov ebx, eax
jmp 0x4385b9
mov byte [esi + 0x80], bl
cmp byte [esi + 0xb1], bl
jne 0x4385b9
cmp byte [esi + 0x74], bl
jne 0x43861f
mov byte [esi + 0x74], 1
call fcn.00429983
push esi
call fcn.0043811c
call fcn.0040dda5
lea edi, [esi + 0x108]
mov dword [ebp - 0xb0], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x90], edi
test eax, 0xffffffe0
jne 0x438658
mov ebx, esi
call fcn.00438295
xor ebx, ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xffffffe0
je 0x4385ec
mov edx, dword [esi + 0x154]
cmp edx, ebx
mov eax, dword [esi + 0x150]
jl 0x4386d0
jg 0x43867b
cmp eax, ebx
jbe 0x4386d0
mov ecx, dword [esi + 0x148]
add ecx, eax
mov eax, dword [esi + 0x14c]
adc eax, edx
cmp eax, dword [ebp - 0xac]
jg 0x4386d0
jl 0x43869d
cmp ecx, dword [ebp - 0xb0]
jae 0x4386d0
mov eax, dword [esi + 0x140]
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
xor edx, edx
sar ecx, 5
inc eax
div ecx
mov dword [esi + 0x140], edx
cmp edx, ebx
jne 0x4386d0
mov ebx, esi
call fcn.00438295
xor ebx, ebx
mov dword [ebp - 0x9c], 1
cmp byte [esi + 0x75], bl
je 0x4386f4
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [esi + 0x140], ebx
sar eax, 5
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], ebx
mov dword [ebp - 0x84], 0xfffffffe
mov dword [ebp - 0xa4], ebx
jg 0x438747
mov eax, dword [esi + 0x150]
or eax, dword [esi + 0x154]
jne 0x4385e6
mov eax, dword [ebp - 0xb0]
mov dword [esi + 0x150], eax
mov eax, dword [ebp - 0xac]
mov dword [esi + 0x154], eax
jmp 0x4385e6
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x90]
cmp dword [ebp - 0x84], ebx
je 0x438d6e
push dword [esi + 0x140]
lea eax, [esi + 0x44]
mov esi, edi
mov dword [ebp - 0x98], eax
call fcn.00408907
mov edi, dword [ebp - 0x98]
mov esi, edi
call fcn.00424f31
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.00424e57
lea esi, [ebp - 0x30]
call fcn.00424973
push 0x48bc00
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 4], 2
call fcn.00424e0d
push ebx
push edi
lea eax, [ebp - 0x210]
call fcn.0042534f
test eax, eax
lea ecx, [ebp - 0x210]
setge byte [ebp - 0x7d]
call fcn.0042523a
push 0x48b7d4
cmp byte [ebp - 0x7d], bl
je 0x4388ac
lea eax, [ebp - 0x150]
push eax
call fcn.00424e0d
lea eax, [ebp - 0x150]
push eax
lea edx, [ebp - 0x308]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0042588f
mov byte [ebp - 4], 4
call fcn.00424f31
lea ecx, [ebp - 0x308]
call fcn.0042523a
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.0042523a
cmp dword [ebp - 0x18], ebx
je 0x43889b
call fcn.0042676f
test al, al
je 0x43889b
mov eax, esi
call fcn.004256d7
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, ebx
jle 0x438841
push eax
lea ecx, [ebp - 0x50]
call fcn.00426a4a
lea eax, [ebp - 0x50]
mov esi, edi
call fcn.00424f31
mov esi, dword [ebp - 0x88]
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xa8], eax
cmp eax, 0xffffffff
je 0x438dc2
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x50]
mov word [ebp - 0x60], ax
call fcn.00425148
cmp dword [eax + 0x18], 0x10
jb 0x438988
mov eax, dword [eax + 4]
jmp 0x43898b
mov esi, dword [ebp - 0x88]
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x8c], eax
jmp 0x438851
lea eax, [ebp - 0x1d0]
push eax
call fcn.00424e0d
lea eax, [ebp - 0x1d0]
push eax
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.0042588f
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.00424f31
lea ecx, [ebp - 0x2c8]
call fcn.0042523a
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 2
call fcn.0042523a
cmp dword [ebp - 0x18], ebx
jne 0x438977
call fcn.0042676f
test al, al
je 0x438977
mov eax, esi
call fcn.004256d7
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, ebx
jle 0x438923
push eax
lea ecx, [ebp - 0x50]
call fcn.00426a4a
lea eax, [ebp - 0x50]
mov esi, edi
call fcn.00424f31
mov esi, dword [ebp - 0x88]
push ebx
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xa8], eax
cmp eax, 0xffffffff
je 0x438dc2
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x50]
call fcn.00425148
cmp dword [eax + 0x18], 0x10
jb 0x438aae
mov eax, dword [eax + 4]
jmp 0x438ab1
mov esi, dword [ebp - 0x88]
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x8c], eax
jmp 0x438933
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push ebx
push 1
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x5c], eax
call fcn.00408bd4
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_htons]
push 4
pop edi
cmp dword [0x4a5e0c], edi
mov word [ebp - 0x5e], ax
jl 0x438a8b
push str...........BlowSnow_sourceSmarticeSIIOClient.cpp
lea eax, [ebp - 0x130]
push eax
call fcn.00424e0d
push 0xa
mov byte [ebp - 4], 7
push dword [esi + 0x64]
lea esi, [ebp - 0x110]
call fcn.00424b5b
push 0x48b7d4
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 8
call fcn.00424e0d
push str.connect
lea eax, [ebp - 0x288]
push eax
mov byte [ebp - 4], 9
call fcn.00424e0d
mov esi, eax
push 0x18e
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.0042735a
mov esi, eax
lea eax, [ebp - 0xf0]
call fcn.0042735a
mov esi, eax
lea eax, [ebp - 0x110]
call fcn.0042735a
push eax
mov ebx, 0x4a5e0c
call fcn.00437f6d
lea ecx, [ebp - 0x288]
call fcn.0042523a
lea ecx, [ebp - 0xf0]
call fcn.0042523a
lea ecx, [ebp - 0x110]
call fcn.0042523a
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 2
call fcn.0042523a
mov esi, dword [ebp - 0x88]
xor ebx, ebx
push dword [esi + 0xa8]
call fcn.00434280
pop ecx
push 0x10
lea eax, [ebp - 0x60]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
jmp 0x438be1
add eax, 4
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x17
call fcn.004346a3
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x24c]
call fcn.00408bd4
push 0x17
pop eax
push dword [ebp - 0x8c]
mov word [ebp - 0x7c], ax
call dword [sym.imp.WS2_32.dll_htons]
push 4
pop edi
cmp dword [0x4a5e0c], edi
mov word [ebp - 0x7a], ax
jl 0x438bbd
push str...........BlowSnow_sourceSmarticeSIIOClient.cpp
lea eax, [ebp - 0x1f0]
push eax
call fcn.00424e0d
push 0xa
mov byte [ebp - 4], 0xb
push dword [esi + 0x64]
lea esi, [ebp - 0x1b0]
call fcn.00424b5b
push 0x48b7d4
lea eax, [ebp - 0x170]
push eax
mov byte [ebp - 4], 0xc
call fcn.00424e0d
push str.connect
lea eax, [ebp - 0x2a8]
push eax
mov byte [ebp - 4], 0xd
call fcn.00424e0d
mov esi, eax
push 0x1a6
lea eax, [ebp - 0x1f0]
push eax
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0xe
call fcn.0042735a
mov esi, eax
lea eax, [ebp - 0x170]
call fcn.0042735a
mov esi, eax
lea eax, [ebp - 0x1b0]
call fcn.0042735a
push eax
mov ebx, 0x4a5e0c
call fcn.00437f6d
lea ecx, [ebp - 0x2a8]
call fcn.0042523a
lea ecx, [ebp - 0x170]
call fcn.0042523a
lea ecx, [ebp - 0x1b0]
call fcn.0042523a
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 2
call fcn.0042523a
mov esi, dword [ebp - 0x88]
xor ebx, ebx
push dword [esi + 0xa8]
call fcn.00434280
pop ecx
push 0x1c
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0x84], eax
cmp eax, ebx
je 0x438cf2
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x94], 4
cmp eax, 0x2733
jne 0x438ce8
lea edi, [esi + 0xb8]
mov eax, edi
call fcn.004224d4
push dword [esi + 0xa8]
push edi
call fcn.004348e1
mov eax, edi
call fcn.004348f4
mov eax, dword [esi + 0x68]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
push eax
push ebx
push dword [esi + 0xd0]
mov dword [ebp - 0xb4], ebx
push ebx
push dword [esi + 0xd4]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x438ce8
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0x1007
push 0xffff
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 0xa0], ebx
jne 0x438ce8
mov eax, esi
lea edi, [ebp - 0xc8]
mov dword [ebp - 0x84], ebx
call fcn.00418b3a
mov byte [ebp - 4], 0xf
push dword [esi + 0xa8]
lea edi, [esi + 0x40]
lea ecx, [esi + 0x20]
call fcn.0041af4f
pop ecx
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 2
call fcn.00418b53
mov ecx, dword [ebp - 0x98]
lea eax, [esi + 0x20]
call fcn.0042738d
test al, al
je 0x438cf2
mov eax, dword [ebp - 0x8c]
cmp dword [edi], eax
jne 0x438cf2
mov dword [ebp - 0x84], 0xfffffffe
cmp byte [esi + 0x75], bl
je 0x438d31
cmp dword [ebp - 0x84], ebx
je 0x438d31
mov eax, dword [ebp - 0x90]
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x140]
sar ecx, 5
inc eax
xor edx, edx
div ecx
push esi
mov dword [esi + 0x140], edx
call fcn.0043811c
lea ecx, [ebp - 0x30]
call fcn.0042523a
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0042523a
inc dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x9c]
jl 0x43873b
mov esi, dword [ebp - 0x88]
cmp dword [ebp - 0x84], ebx
jne 0x43870c
mov byte [esi + 0x75], bl
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
cmp byte [esi + 0x76], bl
je 0x438d8e
push dword [esi + 0xa8]
call fcn.00434252
pop ecx
mov byte [esi + 0xb1], 1
mov byte [ebp - 0x7d], 1
cmp dword [esi + 0xac], ebx
jne 0x438ded
push 0x9c
call fcn.00460299
pop ecx
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0x10
cmp eax, ebx
je 0x438dd9
push eax
call fcn.00439e8e
jmp 0x438ddb
lea ecx, [ebp - 0x30]
call fcn.0042523a
lea ecx, [ebp - 0x50]
call fcn.0042523a
push 0xfffffffffffffffa
jmp 0x4385b8
xor eax, eax
mov byte [ebp - 4], bl
mov dword [esi + 0xac], eax
mov dword [eax + 0x88], esi
mov byte [ebp - 0x7d], bl
push 4
pop edi
cmp dword [0x4a5e0c], edi
jl 0x438e88
push str...........BlowSnow_sourceSmarticeSIIOClient.cpp
lea eax, [ebp - 0x190]
push eax
call fcn.00424e0d
mov byte [ebp - 4], 0x11
push dword [esi + 0xa8]
lea esi, [ebp - 0x230]
call fcn.00424bbd
push str.add_fd:
lea eax, [ebp - 0x2e8]
push eax
mov byte [ebp - 4], 0x12
call fcn.00424e0d
mov esi, eax
push 0x20b
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x13
call fcn.0042735a
push eax
mov ebx, 0x4a5e0c
call fcn.00437f6d
lea ecx, [ebp - 0x2e8]
call fcn.0042523a
lea ecx, [ebp - 0x230]
call fcn.0042523a
lea ecx, [ebp - 0x190]
call fcn.0042523a
mov esi, dword [ebp - 0x88]
xor ebx, ebx
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x90], eax
add eax, 0x68
lea edi, [ebp - 0xc0]
call fcn.00418b3a
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 0x14
push dword [ebp - 0x94]
add eax, 0x38
push eax
call fcn.004348e1
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00418b53
cmp byte [ebp - 0x7d], bl
jne 0x4385b9
mov ecx, dword [esi + 0xac]
push ebx
lea eax, [ebp - 0x328]
push eax
call fcn.00415a68
lea eax, [ebp - 0x328]
push eax
call fcn.00415ba5
jmp 0x4385b9