Function at 0x41e1e7
Capabilities:
Get socket status

Disassembly:
mov eax, 0x47f6f0
call fcn.0047bfa0
sub esp, 0x224
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x4ae590
push dword [esi + 0x24]
push dword [esi]
push str.ReTranslator::DoSmart__0_solid_X__child_X
push edi
call fcn.0042872e
add esp, 0x10
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [esi + 0x1c], ebx
push 0x4000
mov dword [esi + 0x40], ebx
mov byte [esi + 0x20], 1
mov byte [esi + 0x44], 1
mov byte [esi + 0x48], 1
mov byte [esi + 0x49], 1
call fcn.00428e25
mov dword [ebp - 4], ebx
jmp 0x41e240
xor ebx, ebx
cmp byte [esi + 0x49], 0
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x230], ebx
je 0x41e264
mov eax, dword [esi]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x128], eax
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
je 0x41e2a5
xor eax, eax
cmp dword [ebp - 0x12c], ebx
jbe 0x41e287
cmp dword [ebp + eax*4 - 0x128], ecx
je 0x41e287
inc eax
cmp eax, dword [ebp - 0x12c]
jb 0x41e275
cmp eax, dword [ebp - 0x12c]
jne 0x41e2a5
cmp dword [ebp - 0x12c], 0x40
jae 0x41e2a5
mov dword [ebp + eax*4 - 0x128], ecx
inc dword [ebp - 0x12c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0x14]
je 0x41e2bf
mov eax, dword [esi]
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x38]
je 0x41e305
cmp ecx, ebx
je 0x41e305
xor eax, eax
cmp dword [ebp - 0x230], ebx
jbe 0x41e2e7
cmp dword [ebp + eax*4 - 0x22c], ecx
je 0x41e2e7
inc eax
cmp eax, dword [ebp - 0x230]
jb 0x41e2d5
cmp eax, dword [ebp - 0x230]
jne 0x41e305
cmp dword [ebp - 0x230], 0x40
jae 0x41e305
mov dword [ebp + eax*4 - 0x22c], ecx
inc dword [ebp - 0x230]
push ebx
lea eax, [ebp - 0x230]
push ebx
push eax
lea eax, [ebp - 0x12c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jle 0x41e4dd
cmp eax, 4
jg 0x41e4dd
cmp byte [esi + 0x49], 0
je 0x41e3a0
lea eax, [ebp - 0x12c]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41e3a0
lea ebx, [esi + 0x28]
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.0041e52d
pop ecx
test eax, eax
pop ecx
jle 0x41e39a
push eax
mov ecx, esi
call fcn.0041e026
cmp byte [esi + 0x49], 0
jne 0x41e3a0
push str.ReTranslator::DoSmart__139_Remote_child_socket_was_closed
push edi
call fcn.0042872e
pop ecx
pop ecx
lea ecx, [esi + 0x24]
call fcn.0041e513
mov ecx, esi
call fcn.0041e179
jmp 0x41e3a0
jl 0x41e4b8
lea ebx, [esi + 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x41e40a
lea ecx, [ebp - 0x12c]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41e40a
lea ecx, [ebp - 0x28]
call fcn.004296cd
push eax
push dword [ebx]
call fcn.0041e52d
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
pop ecx
jle 0x41e3ec
push eax
lea ecx, [ebp - 0x28]
call fcn.004296cd
push eax
mov ecx, esi
call fcn.0041e11c
mov eax, dword [ebp - 0x10]
add dword [esi + 0x40], eax
jmp 0x41e40a
jge 0x41e40a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ReTranslator::DoSmart__165_child_socket_was_closed__error_d
push edi
call fcn.0042872e
add esp, 0xc
mov ecx, esi
call fcn.0041e179
cmp byte [esi + 0x44], 0
je 0x41e448
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x40]
cmp eax, ecx
ja 0x41e41c
mov eax, ecx
cmp eax, 0x3000
jbe 0x41e448
and byte [esi + 0x44], 0
push 0x28e
lea ecx, [esi + 4]
call fcn.00428fd2
push dword [esi + 0x40]
push dword [esi + 0x1c]
push str.ReTranslator::DoSmart__170_sent_request_for_direct_transfer__bytes_d__d
push edi
call fcn.0042872e
add esp, 0x10
cmp dword [ebx], 0
je 0x41e474
mov ecx, ebx
call fcn.0041e57c
test al, al
jne 0x41e474
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ReTranslator::DoSmart__166_child_socket_was_closed__error_d
push edi
call fcn.0042872e
add esp, 0xc
mov ecx, esi
call fcn.0041e179
mov ecx, esi
call fcn.0041e57c
test al, al
je 0x41e4c6
cmp byte [esi + 0x49], 0
jne 0x41e4a0
cmp dword [esi + 0x24], 0
jne 0x41e23e
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0x14]
jne 0x41e23e
push 2
pop esi
jmp 0x41e4f6
cmp byte [esi + 0x20], 0
jne 0x41e23e
cmp byte [esi + 0x44], 0
jne 0x41e23e
push 3
jmp 0x41e49d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ReTranslator::DoSmart__159_solid_socket_read_error_d
jmp 0x41e4d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ReTranslator::DoSmart__159_solid_socket_send_error_d
push edi
call fcn.00428716
add esp, 0xc
jmp 0x41e4f3
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DoSmart__1_error_d__d
push edi
call fcn.00428716
add esp, 0x10
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00428eb1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret