Function at 0x1002b100
Capabilities:
Get socket status

Disassembly:
mov eax, 0x2124
call fcn.1006c090
push esi
mov esi, ecx
call fcn.1002aee0
test eax, eax
jne 0x1002b12a
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 0x1002b49a
mov ebp, 0x2000
mov edx, dword [esi + 0x38]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [edx + 0x60], ebx
jne 0x1002b1b2
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 0x1002b1cb
mov edi, dword [esi + 0x2c]
lea edx, [esp + 0x30]
cmp dword [edx], edi
je 0x1002b1cb
inc eax
add edx, 4
cmp eax, ecx
jb 0x1002b1bf
cmp eax, ecx
jne 0x1002b1e4
cmp ecx, 0x40
jae 0x1002b1e4
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 0x1002b463
cmp eax, ebx
je 0x1002b44b
jle 0x1002b44b
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002b359
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.1002a6b0
test eax, eax
jne 0x1002b292
cmp dword [esp + 0x10], ebx
jne 0x1002b49a
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 0x1002b49a
jmp 0x1002b44b
cmp dword [esi + 0x3c], ebx
jne 0x1002b336
cmp dword [esi + 0x38], ebx
je 0x1002b336
cmp dword [esp + 0x10], ebx
je 0x1002b359
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 0x1002b49a
cmp dword [esp + 0x1c], ebx
je 0x1002b359
mov eax, dword [esp + 0x18]
push ebx
cmp eax, ebx
je 0x1002b318
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.1002ab10
test eax, eax
jne 0x1002b359
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x1002b48d
jmp 0x1002b359
lea eax, [esp + 0x14]
lea ecx, [esp + 0x134]
push eax
push ecx
mov ecx, esi
call fcn.1002ab10
test eax, eax
je 0x1002b49a
jmp 0x1002b359
cmp dword [esp + 0x10], ebx
je 0x1002b359
lea edx, [esp + 0x10]
push ebx
lea eax, [esp + 0x134]
push edx
push eax
mov ecx, esi
call fcn.1002ab10
test eax, eax
je 0x1002b49a
mov edx, dword [esi + 0x2c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002b44b
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.1002a7f0
test eax, eax
je 0x1002b49a
cmp dword [esi + 0x3c], ebx
jne 0x1002b42d
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x1002b42d
cmp dword [esp + 0x10], ebx
je 0x1002b44b
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 0x1002b49a
cmp dword [esp + 0x1c], ebx
je 0x1002b44b
cmp dword [esp + 0x18], ebx
je 0x1002b413
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.1002a9e0
test eax, eax
jne 0x1002b44b
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x1002b48d
jmp 0x1002b44b
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
push ecx
mov ecx, esi
call fcn.1002a9e0
test eax, eax
je 0x1002b49a
jmp 0x1002b44b
cmp dword [esp + 0x10], ebx
je 0x1002b44b
lea edx, [esp + 0x10]
lea eax, [esp + 0x130]
push edx
push eax
mov ecx, esi
call fcn.1002a9e0
test eax, eax
je 0x1002b49a
mov ecx, dword [esi + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1002b194
jmp 0x1002b49a
cmp dword [0x102f7658], ebx
je 0x1002b49a
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
jmp 0x1002b49a
push eax
call fcn.1023d925
add esp, 4
mov dword [esp + 0x14], ebx
mov ecx, esi
call fcn.1002afe0
mov ecx, esi
call fcn.1002b0a0
mov edx, dword [esi + 0x2c]
mov ecx, 0x102e1c48
push edx
call fcn.10003cc0
mov eax, dword [esi + 0x2c]
mov ecx, 0x102e1bc8
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