Function at 0x41c12d
Capabilities:
Get socket status

Disassembly:
mov eax, 0x47b644
call fcn.00478530
sub esp, 0x220
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x4a7870
push dword [esi + 4]
push dword [esi]
push str.CReTranslator::DoSmart__0_solid_X__child_X
push edi
call fcn.0042635b
add esp, 0x10
xor ebx, ebx
lea ecx, [ebp - 0x24]
mov dword [esi + 0xc], ebx
push 0x4000
mov dword [esi + 0x10], ebx
mov byte [esi + 8], 1
mov byte [esi + 0x44], 1
mov byte [esi + 0x45], 1
mov byte [esi + 0x46], 1
call fcn.00426a4d
mov dword [ebp - 4], ebx
xor ebx, ebx
cmp byte [esi + 0x46], bl
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x22c], ebx
je 0x41c196
mov eax, dword [esi]
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], eax
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x41c1d7
xor eax, eax
cmp dword [ebp - 0x128], ebx
jbe 0x41c1b9
cmp dword [ebp + eax*4 - 0x124], ecx
je 0x41c1b9
inc eax
cmp eax, dword [ebp - 0x128]
jb 0x41c1a7
cmp eax, dword [ebp - 0x128]
jne 0x41c1d7
cmp dword [ebp - 0x128], 0x40
jae 0x41c1d7
mov dword [ebp + eax*4 - 0x124], ecx
inc dword [ebp - 0x128]
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x3c]
je 0x41c1f1
mov eax, dword [esi]
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x228], eax
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x24]
je 0x41c237
cmp ecx, ebx
je 0x41c237
xor eax, eax
cmp dword [ebp - 0x22c], ebx
jbe 0x41c219
cmp dword [ebp + eax*4 - 0x228], ecx
je 0x41c219
inc eax
cmp eax, dword [ebp - 0x22c]
jb 0x41c207
cmp eax, dword [ebp - 0x22c]
jne 0x41c237
cmp dword [ebp - 0x22c], 0x40
jae 0x41c237
mov dword [ebp + eax*4 - 0x228], ecx
inc dword [ebp - 0x22c]
push ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x41c404
cmp eax, 4
jg 0x41c404
cmp byte [esi + 0x46], 0
je 0x41c2ca
lea eax, [ebp - 0x128]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41c2ca
lea ebx, [esi + 0x14]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
add ecx, 0x4000
push ecx
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
push eax
push dword [esi]
call fcn.0041c43a
pop ecx
test eax, eax
pop ecx
jle 0x41c2c4
push eax
mov ecx, esi
call fcn.0041bf8c
cmp byte [esi + 0x46], 0
jne 0x41c2ca
push str.CReTranslator::DoSmart__139_Remote_child_socket_was_closed
push edi
call fcn.0042635b
pop ecx
pop ecx
mov ecx, esi
call fcn.0041c0b9
jmp 0x41c2ca
jl 0x41c3df
mov eax, dword [esi + 4]
test eax, eax
je 0x41c32f
lea ecx, [ebp - 0x128]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41c32f
lea ecx, [ebp - 0x24]
call fcn.004272f6
push eax
push dword [esi + 4]
call fcn.0041c43a
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jle 0x41c311
push ebx
lea ecx, [ebp - 0x24]
call fcn.004272f6
push eax
mov ecx, esi
call fcn.0041c05c
add dword [esi + 0x10], ebx
jmp 0x41c32f
jge 0x41c32f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CReTranslator::DoSmart__165_child_socket_was_closed__error_d
push edi
call fcn.0042635b
add esp, 0xc
mov ecx, esi
call fcn.0041c0b9
cmp byte [esi + 0x45], 0
je 0x41c362
mov eax, 0x80
cmp dword [esi + 0xc], eax
jbe 0x41c362
cmp dword [esi + 0x10], eax
jbe 0x41c362
and byte [esi + 0x45], 0
push 0x28e
lea ecx, [esi + 0x2c]
call fcn.00426bfa
push str.CReTranslator::DoSmart__170_sent_request_for_direct_transfer
push edi
call fcn.0042635b
pop ecx
pop ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x41c395
lea ecx, [esi + 0x14]
push ecx
push eax
call fcn.0041c489
pop ecx
test al, al
pop ecx
jne 0x41c395
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CReTranslator::DoSmart__166_child_socket_was_closed__error_d
push edi
call fcn.0042635b
add esp, 0xc
mov ecx, esi
call fcn.0041c0b9
lea eax, [esi + 0x2c]
push eax
push dword [esi]
call fcn.0041c489
pop ecx
test al, al
pop ecx
je 0x41c3ed
cmp byte [esi + 0x46], 0
jne 0x41c3c7
cmp dword [esi + 4], 0
jne 0x41c171
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x3c]
jne 0x41c171
push 2
pop esi
jmp 0x41c41d
cmp byte [esi + 0x44], 0
jne 0x41c171
cmp byte [esi + 0x45], 0
jne 0x41c171
push 3
jmp 0x41c3c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CReTranslator::DoSmart__159_solid_socket_read_error_d
jmp 0x41c3f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CReTranslator::DoSmart__159_solid_socket_send_error_d
push edi
call fcn.00426343
add esp, 0xc
jmp 0x41c41a
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DoSmart__1_error_d__d
push edi
call fcn.00426343
add esp, 0x10
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00426ad9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret