Function at 0x10225630
Capabilities:
Get socket status

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0x50]
push edi
mov eax, dword [esi]
xor ebp, ebp
push ecx
xor edi, edi
mov dword [esp + 0x64], eax
push ebp
lea edx, [esp + 0x64]
push ebp
inc eax
push edx
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x70], 1
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], 0x186a0
call sub.WS2_32.dll_select
cmp eax, ebp
jge 0x1022569c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x150
ret
jne 0x102256ab
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x150
ret
mov ecx, dword [esi]
lea eax, [esp + 0x5c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x102256c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
push 8
call fcn.1022ef86
mov ebx, eax
push 8
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
call fcn.1022ef86
mov edx, dword [esi]
lea ecx, [eax + 4]
mov dword [eax], edx
add esp, 8
mov dword [ecx], ebp
mov dword [ebx], eax
or eax, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov eax, 1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ebp
jmp 0x10225714
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x164]
mov esi, 1
mov ecx, dword [eax + 0x34]
cmp dword [ecx + 0x10], esi
je 0x10225a01
cmp dword [esp + 0x2c], ebp
je 0x1022587c
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x50]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x60]
push edx
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x184]
push ecx
push edi
push edx
push eax
call fcn.102253d0
push str._s_Recv_Sub_Packet..
mov esi, eax
call fcn.10226240
add esp, 0x30
cmp esi, ebp
jle 0x10225a25
mov dword [esp + 0x2c], ebp
cmp edi, ebp
je 0x10225795
push edi
call fcn.1022ee9d
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
cmp eax, ebp
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], ebp
jne 0x102258d9
cmp ecx, dword [esp + 0x30]
jne 0x102257d0
mov edx, dword [esp + 0x44]
inc edx
cmp edx, eax
je 0x102258d9
cmp ebx, ebp
je 0x102257dd
push ebx
call fcn.10225b40
add esp, 4
push 8
call fcn.1022ef86
mov ebx, eax
push 8
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
call fcn.1022ef86
mov ecx, dword [esp + 0x170]
push 0xc
mov edx, dword [ecx]
lea ecx, [eax + 4]
mov dword [eax], edx
mov dword [esp + 0x30], ecx
mov dword [ecx], ebp
mov dword [ebx], eax
call fcn.1022ef86
mov ebp, eax
mov eax, dword [esp + 0x20]
push eax
call fcn.1022ef86
mov dword [ebp + 4], eax
mov dword [ebp + 8], 0
mov ecx, dword [esp + 0x24]
mov edi, eax
mov dword [ebp], ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x34]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x44], ebp
rep movsb byte es:[edi], byte [esi]
mov dword [eax], ebp
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1022ee9d
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
add esp, 0x14
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], eax
xor ebp, ebp
jmp 0x10225710
cmp dword [esp + 0x20], ebp
jne 0x1022588b
mov dword [esp + 0x2c], esi
jmp 0x10225714
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x54]
push edx
push eax
push ecx
push edi
call fcn.10225300
mov esi, eax
add esp, 0x24
cmp esi, ebp
jl 0x10225a38
jne 0x10225788
mov dword [esp + 0x2c], 1
jmp 0x10225714
push 0xc
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], eax
call fcn.1022ef86
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov dword [esp + 0x54], esi
call fcn.1022ef86
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
mov edx, dword [esp + 0x1c]
mov edi, eax
mov dword [esi], edx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x3c]
add esp, 8
and ecx, 3
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
jne 0x10225937
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov dword [ecx], edx
jmp 0x1022593e
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
push eax
mov dword [esp + 0x38], edx
call fcn.1022ee9d
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
add eax, edx
add esp, 4
cmp eax, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x38], eax
jne 0x10225710
push str._S_Recv_Packet...
call fcn.10226240
mov ecx, dword [esp + 0x168]
push ebx
mov edx, dword [ecx + 0x28]
push edx
call fcn.10225fe0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebp
je 0x10225a85
or eax, 0xffffffff
push 8
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x40], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call fcn.1022ef86
mov ebx, eax
push 8
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
call fcn.1022ef86
mov ecx, dword [esp + 0x170]
add esp, 8
mov dword [esp + 0x34], ebp
mov edx, dword [ecx]
lea ecx, [eax + 4]
mov dword [eax], edx
mov dword [esp + 0x24], ecx
mov dword [ecx], ebp
mov dword [ebx], eax
jmp 0x10225710
cmp ebx, ebp
je 0x10225a0e
push ebx
call fcn.10225b40
add esp, 4
cmp edi, ebp
je 0x10225a1b
push edi
call fcn.1022ee9d
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x10225a67
jmp 0x10225a5a
cmp ebx, ebp
je 0x10225a32
push ebx
call fcn.10225b40
add esp, 4
cmp edi, ebp
je 0x10225a1b
jmp 0x10225a12
cmp ebx, ebp
je 0x10225a45
push ebx
call fcn.10225b40
add esp, 4
cmp edi, ebp
je 0x10225a52
push edi
call fcn.1022ee9d
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x10225a67
push eax
call fcn.1022ee9d
add esp, 4
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x10225a78
push eax
call fcn.1022ee9d
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x150
ret