Function at 0x10033910
Capabilities:
Get socket status

Disassembly:
mov eax, 0x2124
call fcn.10077700
push esi
mov esi, ecx
call fcn.100336f0
test eax, eax
jne 0x1003393a
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x2124
ret
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x800
lea edi, [esp + 0x131]
mov byte [esp + 0x130], bl
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x2c], ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10033caa
mov ebp, 0x2000
mov edx, dword [esi + 0x38]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [edx + 0x64], ebx
jne 0x100339c2
mov eax, dword [esi + 0x28]
mov ecx, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
xor eax, eax
cmp ecx, ebx
jbe 0x100339db
mov edi, dword [esi + 0x2c]
lea edx, [esp + 0x30]
cmp dword [edx], edi
je 0x100339db
inc eax
add edx, 4
cmp eax, ecx
jb 0x100339cf
cmp eax, ecx
jne 0x100339f4
cmp ecx, 0x40
jae 0x100339f4
mov ecx, dword [esi + 0x2c]
mov dword [esp + eax*4 + 0x30], ecx
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x10033c73
cmp eax, ebx
je 0x10033c5b
jle 0x10033c5b
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10033b69
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x130]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
push ecx
mov ecx, esi
call fcn.10032e90
test eax, eax
jne 0x10033aa2
cmp dword [esp + 0x10], ebx
jne 0x10033caa
lea eax, [esp + 0x1c]
mov ecx, dword [esi + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push ebp
push eax
lea eax, [esp + 0x148]
push eax
call dword [edx + 0x10]
cmp eax, 1
jne 0x10033caa
jmp 0x10033c5b
cmp dword [esi + 0x3c], ebx
jne 0x10033b46
cmp dword [esi + 0x38], ebx
je 0x10033b46
cmp dword [esp + 0x10], ebx
je 0x10033b69
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0x1c]
mov ecx, dword [esi + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push ebp
push eax
lea eax, [esp + 0x148]
push eax
call dword [edx + 0x10]
test eax, eax
je 0x10033caa
cmp dword [esp + 0x1c], ebx
je 0x10033b69
mov eax, dword [esp + 0x18]
push ebx
cmp eax, ebx
je 0x10033b28
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.100332f0
test eax, eax
jne 0x10033b69
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x10033c9d
jmp 0x10033b69
lea eax, [esp + 0x14]
lea ecx, [esp + 0x134]
push eax
push ecx
mov ecx, esi
call fcn.100332f0
test eax, eax
je 0x10033caa
jmp 0x10033b69
cmp dword [esp + 0x10], ebx
je 0x10033b69
lea edx, [esp + 0x10]
push ebx
lea eax, [esp + 0x134]
push edx
push eax
mov ecx, esi
call fcn.100332f0
test eax, eax
je 0x10033caa
mov edx, dword [esi + 0x2c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10033c5b
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x130]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
push ecx
mov ecx, esi
call fcn.10032fd0
test eax, eax
je 0x10033caa
cmp dword [esi + 0x3c], ebx
jne 0x10033c3d
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x10033c3d
cmp dword [esp + 0x10], ebx
je 0x10033c5b
lea eax, [esp + 0x1c]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push ebp
push eax
lea eax, [esp + 0x148]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x10033caa
cmp dword [esp + 0x1c], ebx
je 0x10033c5b
cmp dword [esp + 0x18], ebx
je 0x10033c23
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.100331c0
test eax, eax
jne 0x10033c5b
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x10033c9d
jmp 0x10033c5b
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
push ecx
mov ecx, esi
call fcn.100331c0
test eax, eax
je 0x10033caa
jmp 0x10033c5b
cmp dword [esp + 0x10], ebx
je 0x10033c5b
lea edx, [esp + 0x10]
lea eax, [esp + 0x130]
push edx
push eax
mov ecx, esi
call fcn.100331c0
test eax, eax
je 0x10033caa
mov ecx, dword [esi + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100339a4
jmp 0x10033caa
cmp dword [0x1030aa70], ebx
je 0x10033caa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CTransfer::Run:_select___failed__errno:_d__r_n
push str.CTransfer
push 4
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
jmp 0x10033caa
push eax
call fcn.1024ac9a
add esp, 4
mov dword [esp + 0x14], ebx
mov ecx, esi
call fcn.100337f0
mov ecx, esi
call fcn.100338b0
mov edx, dword [esi + 0x2c]
mov ecx, 0x102f39b8
push edx
call fcn.10003e90
mov eax, dword [esi + 0x2c]
mov ecx, 0x102f3938
push eax
call fcn.10001ff0
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
call dword [edx + 0x18]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x2124
ret